[arch-commits] Commit in svt-hevc/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun Mar 6 17:03:50 UTC 2022


    Date: Sunday, March 6, 2022 @ 17:03:50
  Author: felixonmars
Revision: 1142798

archrelease: copy trunk to community-staging-x86_64

Added:
  svt-hevc/repos/community-staging-x86_64/
  svt-hevc/repos/community-staging-x86_64/PKGBUILD
    (from rev 1142797, svt-hevc/trunk/PKGBUILD)

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

Copied: svt-hevc/repos/community-staging-x86_64/PKGBUILD (from rev 1142797, svt-hevc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-03-06 17:03:50 UTC (rev 1142798)
@@ -0,0 +1,45 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Contributor: Luis Garcia <luigi311.lg at gmail.com>
+
+pkgname=svt-hevc
+pkgver=1.5.1
+pkgrel=2
+pkgdesc='Scalable Video Technology HEVC encoder'
+arch=(x86_64)
+url=https://github.com/OpenVisualCloud/SVT-HEVC
+license=(BSD)
+makedepends=(
+  cmake
+  git
+  nasm
+  ninja
+)
+_tag=b65eba07e6dee37407631cc441561960838b0333
+source=(git+https://github.com/OpenVisualCloud/SVT-HEVC.git#tag=${_tag})
+md5sums=(SKIP)
+
+pkgver() {
+  cd SVT-HEVC
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  sed '/CMAKE_BUILD_TYPE Release/d' -i SVT-HEVC/CMakeLists.txt
+}
+
+build() {
+  export LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
+  cmake -S SVT-HEVC -B build -G Ninja \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_SHARED_LIBS=ON \
+    -DNATIVE=OFF
+  cmake --build build
+}
+
+package() {
+  DESTDIR="${pkgdir}" cmake --install build
+  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