Date: Tuesday, May 18, 2021 @ 08:28:15 Author: alucryd Revision: 936217
upgpkg: svt-hevc 1.5.1-1 Modified: svt-hevc/trunk/PKGBUILD ----------+ PKGBUILD | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-05-18 08:24:22 UTC (rev 936216) +++ PKGBUILD 2021-05-18 08:28:15 UTC (rev 936217) @@ -3,52 +3,43 @@ # Contributor: Luis Garcia <luigi311...@gmail.com> pkgname=svt-hevc -pkgver=1.5.0 +pkgver=1.5.1 pkgrel=1 pkgdesc='Scalable Video Technology HEVC encoder' arch=(x86_64) -url='https://github.com/OpenVisualCloud/SVT-HEVC' +url=https://github.com/OpenVisualCloud/SVT-HEVC license=(BSD) makedepends=( cmake git nasm + ninja ) -source=(git+https://github.com/OpenVisualCloud/SVT-HEVC.git#tag=909a9f38f07709991d640bf65a25834acfad6505) +_tag=779e5bcbe439c9f67fe9c6ad60297b9540136c8f +source=(git+https://github.com/OpenVisualCloud/SVT-HEVC.git#tag=${_tag}) 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 \ + cmake -S SVT-HEVC -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ -DNATIVE=OFF - make + cmake --build build } package() { - cd build - - make DESTDIR="${pkgdir}" install - install -Dm 644 ../SVT-HEVC/LICENSE.md -t "${pkgdir}"/usr/share/licenses/svt-hevc/ + 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: