[arch-commits] Commit in svt-av1 (3 files)

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


    Date: Thursday, September 12, 2019 @ 18:22:33
  Author: alucryd
Revision: 509726

archrelease: copy trunk to community-x86_64

Added:
  svt-av1/repos/
  svt-av1/repos/community-x86_64/
  svt-av1/repos/community-x86_64/PKGBUILD
    (from rev 509725, svt-av1/trunk/PKGBUILD)

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

Copied: svt-av1/repos/community-x86_64/PKGBUILD (from rev 509725, svt-av1/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2019-09-12 18:22:33 UTC (rev 509726)
@@ -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