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

Maxime Gauduin alucryd at archlinux.org
Mon Nov 25 20:56:03 UTC 2019


    Date: Monday, November 25, 2019 @ 20:56:02
  Author: alucryd
Revision: 533303

archrelease: copy trunk to community-x86_64

Added:
  svt-vp9/repos/
  svt-vp9/repos/community-x86_64/
  svt-vp9/repos/community-x86_64/PKGBUILD
    (from rev 533302, svt-vp9/trunk/PKGBUILD)

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

Copied: svt-vp9/repos/community-x86_64/PKGBUILD (from rev 533302, svt-vp9/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2019-11-25 20:56:02 UTC (rev 533303)
@@ -0,0 +1,52 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Thomas Schneider <maxmusterm at gmail.com>
+
+pkgname=svt-vp9
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Scalable Video Technology VP9 encoder'
+arch=(x86_64)
+url=https://github.com/OpenVisualCloud/SVT-VP9
+license=(BSD)
+depends=(glibc)
+makedepends=(
+  cmake
+  git
+  nasm
+)
+source=(git+https://github.com/OpenVisualCloud/SVT-VP9.git#tag=4d7f6c6eb9501bfd1f58d4063cae050408b26552)
+md5sums=(SKIP)
+
+pkgver() {
+  cd SVT-VP9
+
+  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-VP9/CMakeLists.txt
+}
+
+build() {
+  cd build
+
+  export LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
+
+  cmake ../SVT-VP9 \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  make
+}
+
+package() {
+  cd build
+
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 ../SVT-VP9/LICENSE.md -t "${pkgdir}"/usr/share/licenses/svt-vp9/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list