From 030b7b2c223a1edf3053e14454a8161ae653e94e Mon Sep 17 00:00:00 2001 From: Zak Date: Sun, 3 Mar 2024 13:36:10 -0500 Subject: [PATCH] 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 --- svt-av1-psy/.SRCINFO | 19 ++++++++++++++++ svt-av1-psy/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 svt-av1-psy/.SRCINFO create mode 100644 svt-av1-psy/PKGBUILD diff --git a/svt-av1-psy/.SRCINFO b/svt-av1-psy/.SRCINFO new file mode 100644 index 00000000..6f09c3d9 --- /dev/null +++ b/svt-av1-psy/.SRCINFO @@ -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 diff --git a/svt-av1-psy/PKGBUILD b/svt-av1-psy/PKGBUILD new file mode 100644 index 00000000..1136f855 --- /dev/null +++ b/svt-av1-psy/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Maxime Gauduin +# Contributor: Daniel Bermond +# Contributor: Thomas Schneider +# Contributor: Zak BlueSwordM + +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: