[arch-commits] Commit in svt-hevc (3 files)
Maxime Gauduin
alucryd at archlinux.org
Thu Sep 12 18:21:36 UTC 2019
Date: Thursday, September 12, 2019 @ 18:21:36
Author: alucryd
Revision: 509724
archrelease: copy trunk to community-x86_64
Added:
svt-hevc/repos/
svt-hevc/repos/community-x86_64/
svt-hevc/repos/community-x86_64/PKGBUILD
(from rev 509723, svt-hevc/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: svt-hevc/repos/community-x86_64/PKGBUILD (from rev 509723, svt-hevc/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2019-09-12 18:21:36 UTC (rev 509724)
@@ -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