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

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


    Date: Thursday, September 12, 2019 @ 18:21:21
  Author: alucryd
Revision: 509722

add svt-hevc

Added:
  svt-hevc/
  svt-hevc/trunk/
  svt-hevc/trunk/PKGBUILD

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

Added: svt-hevc/trunk/PKGBUILD
===================================================================
--- svt-hevc/trunk/PKGBUILD	                        (rev 0)
+++ svt-hevc/trunk/PKGBUILD	2019-09-12 18:21:21 UTC (rev 509722)
@@ -0,0 +1,53 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Luis Garcia <luigi311.lg at gmail.com>
+
+pkgname=svt-hevc
+pkgver=1.4.1
+pkgrel=1
+pkgdesc='Scalable Video Technology HEVC encoder'
+arch=(x86_64)
+url='https://github.com/OpenVisualCloud/SVT-HEVC'
+license=(BSD)
+makedepends=(
+  cmake
+  git
+  nasm
+)
+source=(git+https://github.com/OpenVisualCloud/SVT-HEVC.git#tag=02fd1261966acfae6b363d8213710ef7505f0f31)
+md5sums=(SKIP)
+
+pkgver() {
+  cd SVT-HEVC
+
+  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-HEVC/CMakeLists.txt
+}
+
+build() {
+  cd build
+
+  export LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
+
+  cmake ../SVT-HEVC \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_SHARED_LIBS=ON \
+    -DNATIVE=OFF
+  make
+}
+
+package() {
+  cd build
+
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 ../SVT-HEVC/LICENSE.md -t "${pkgdir}"/usr/share/licenses/svt-hevc/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list