[arch-commits] Commit in (svt-av1 svt-av1/trunk svt-av1/trunk/PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Thu Sep 12 18:22:20 UTC 2019


    Date: Thursday, September 12, 2019 @ 18:22:19
  Author: alucryd
Revision: 509725

add svt-av1

Added:
  svt-av1/
  svt-av1/trunk/
  svt-av1/trunk/PKGBUILD

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

Added: svt-av1/trunk/PKGBUILD
===================================================================
--- svt-av1/trunk/PKGBUILD	                        (rev 0)
+++ svt-av1/trunk/PKGBUILD	2019-09-12 18:22:19 UTC (rev 509725)
@@ -0,0 +1,53 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Thomas Schneider <maxmusterm at gmail.com>
+
+pkgname=svt-av1
+pkgver=0.6.0
+pkgrel=1
+pkgdesc='Scalable Video Technology AV1 encoder'
+arch=(x86_64)
+url='https://github.com/OpenVisualCloud/SVT-AV1'
+license=(BSD)
+makedepends=(
+  cmake
+  git
+  nasm
+)
+source=(git+https://github.com/OpenVisualCloud/SVT-AV1.git#tag=2bebd2df01b28a64dcd834b40f0a5ed090143945)
+md5sums=(SKIP)
+
+pkgver() {
+  cd SVT-AV1
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
+
+  sed '/CMAKE_BUILD_TYPE Release/d' -i SVT-AV1/CMakeLists.txt
+}
+
+build() {
+  cd build
+
+  export LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
+
+  cmake ../SVT-AV1 \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_SHARED_LIBS=ON \
+    -DNATIVE=OFF
+  make
+}
+
+package() {
+  cd build
+
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 ../SVT-AV1/LICENSE.md -t "${pkgdir}"/usr/share/licenses/svt-av1/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list