-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding svt-av1-psy as a separate package (#144)
* Adding svt-av1-psy as a separate package * Fixing PKGBUILD and SRCINFO --------- Co-authored-by: BlueSwordM <[email protected]>
- Loading branch information
1 parent
3b46130
commit 030b7b2
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
pkgbase = svt-av1-psy | ||
pkgdesc = Scalable Video Technology AV1 encoder and decoder, with added perceptual enhancements for psychovisually optimal AV1 encoding | ||
pkgver = v2.0.0.rc2.r0.g5cac47c1 | ||
pkgrel = 1 | ||
url = https://github.com/gianni-rosato/svt-av1-psy | ||
arch = x86_64 | ||
license = BSD | ||
license = custom: Alliance for Open Media Patent License 1.0 | ||
makedepends = cmake | ||
makedepends = git | ||
makedepends = nasm | ||
makedepends = ninja | ||
depends = glibc | ||
provides = svt-av1 | ||
conflicts = svt-av1 | ||
source = git+https://github.com/gianni-rosato/svt-av1-psy.git#tag=5cac47c1eaee9c5229cdf693bf26e90ff6c54b40 | ||
b2sums = SKIP | ||
|
||
pkgname = svt-av1-psy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Maintainer: Maxime Gauduin <[email protected]> | ||
# Contributor: Daniel Bermond <[email protected]> | ||
# Contributor: Thomas Schneider <[email protected]> | ||
# Contributor: Zak BlueSwordM <[email protected]> | ||
|
||
pkgname=svt-av1-psy | ||
pkgver=v2.0.0.rc2.r0.g5cac47c1 | ||
pkgrel=1 | ||
pkgdesc='Scalable Video Technology AV1 encoder and decoder, with added perceptual enhancements for psychovisually optimal AV1 encoding' | ||
arch=(x86_64) | ||
url=https://github.com/gianni-rosato/svt-av1-psy | ||
license=( | ||
BSD | ||
'custom: Alliance for Open Media Patent License 1.0' | ||
) | ||
depends=(glibc) | ||
makedepends=( | ||
cmake | ||
git | ||
nasm | ||
ninja | ||
) | ||
provides=('svt-av1') | ||
conflicts=('svt-av1') | ||
_tag=5cac47c1eaee9c5229cdf693bf26e90ff6c54b40 | ||
source=(git+https://github.com/gianni-rosato/svt-av1-psy.git#tag=${_tag}) | ||
b2sums=('SKIP') | ||
|
||
prepare() { | ||
sed '/CMAKE_BUILD_TYPE Release/d' -i svt-av1-psy/CMakeLists.txt | ||
} | ||
|
||
pkgver() { | ||
cd svt-av1-psy | ||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | ||
} | ||
|
||
build() { | ||
export LDFLAGS="$LDFLAGS -Wl,-z,noexecstack" | ||
cmake -S svt-av1-psy -B build -G Ninja \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DENABLE_AVX512=ON | ||
ninja -C build | ||
} | ||
|
||
package() { | ||
DESTDIR="${pkgdir}" ninja -C build install | ||
install -Dm 644 svt-av1-psy/{LICENSE,PATENTS}.md -t "${pkgdir}"/usr/share/licenses/svt-av1/ | ||
} | ||
|
||
# vim: ts=2 sw=2 et: |