[arch-commits] Commit in svt-av1/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Sun Jun 12 08:48:37 UTC 2022


    Date: Sunday, June 12, 2022 @ 08:48:37
  Author: arojas
Revision: 448228

archrelease: copy trunk to staging-x86_64

Added:
  svt-av1/repos/staging-x86_64/
  svt-av1/repos/staging-x86_64/PKGBUILD
    (from rev 448227, svt-av1/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: svt-av1/repos/staging-x86_64/PKGBUILD (from rev 448227, svt-av1/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2022-06-12 08:48:37 UTC (rev 448228)
@@ -0,0 +1,49 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Daniel Bermond <dbermond at archlinux.org>
+# Contributor: Thomas Schneider <maxmusterm at gmail.com>
+
+pkgname=svt-av1
+pkgver=1.1.0
+pkgrel=1
+pkgdesc='Scalable Video Technology AV1 encoder and decoder'
+arch=(x86_64)
+url=https://gitlab.com/AOMediaCodec/SVT-AV1
+license=(
+  BSD
+  'custom: Alliance for Open Media Patent License 1.0'
+)
+depends=(glibc)
+makedepends=(
+  cmake
+  git
+  nasm
+  ninja
+)
+_tag=6e87a1de98281840abebc030781780edd822bae5
+source=(git+https://gitlab.com/AOMediaCodec/SVT-AV1.git#tag=${_tag})
+b2sums=(SKIP)
+
+prepare() {
+  sed '/CMAKE_BUILD_TYPE Release/d' -i SVT-AV1/CMakeLists.txt
+}
+
+pkgver() {
+  cd SVT-AV1
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  export LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
+  cmake -S SVT-AV1 -B build -G Ninja \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_SHARED_LIBS=ON \
+    -DNATIVE=OFF
+  ninja -C build
+}
+
+package() {
+  DESTDIR="${pkgdir}" ninja -C build install
+  install -Dm 644 SVT-AV1/{LICENSE,PATENTS}.md -t "${pkgdir}"/usr/share/licenses/svt-av1/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list