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

Daniel Bermond dbermond at gemini.archlinux.org
Fri Oct 15 20:14:58 UTC 2021


    Date: Friday, October 15, 2021 @ 20:14:58
  Author: dbermond
Revision: 1030327

upgpkg: hm 16.24-1

Modified:
  hm/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-15 20:10:31 UTC (rev 1030326)
+++ PKGBUILD	2021-10-15 20:14:58 UTC (rev 1030327)
@@ -1,7 +1,7 @@
 # Maintainer: Daniel Bermond <dbermond at archlinux.org>
 
 pkgname=hm
-pkgver=16.23
+pkgver=16.24
 pkgrel=1
 pkgdesc='HEVC Test Model - the reference software for HEVC'
 arch=('x86_64')
@@ -11,27 +11,24 @@
 makedepends=('cmake' 'lsb-release' 'openmp')
 source=("https://vcgit.hhi.fraunhofer.de/jct-vc/HM/-/archive/HM-${pkgver}/HM-HM-${pkgver}.tar.bz2"
         '010-hm-disable-werror.patch')
-sha256sums=('5157839199c089c1fe47454149839caac61bc37142c1356efaf2b7d89bdee3d5'
+sha256sums=('560e750cefe2ad0edae0687735ae3a4d8f34d033809775af70efdbfcf85fcba2'
             '26ed4fb40812ecfce04b1301dc159fb2a575ece22a3532fe991f72e0f4e9488a')
 
 prepare() {
     patch -d "HM-HM-${pkgver}" -Np1 -i "${srcdir}/010-hm-disable-werror.patch"
-    cp -a "HM-HM-${pkgver}" "HM-HM-${pkgver}-highbit"
+    cp -a "HM-HM-${pkgver}"{,-highbit}
 }
 
 build() {
-    cmake -B build -S "HM-HM-${pkgver}" \
-        -DCMAKE_BUILD_TYPE:STRING='Release' \
-        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-        -DHIGH_BITDEPTH:BOOL='OFF' \
-        -Wno-dev
+    local -a _common_opts=(
+        '-DCMAKE_BUILD_TYPE:STRING=Release'
+        '-DCMAKE_INSTALL_PREFIX:PATH=/usr'
+        '-Wno-dev')
+    
+    cmake -B build -S "HM-HM-${pkgver}" "$_common_opts" -DHIGH_BITDEPTH:BOOL='OFF'
     make -C build
     
-    cmake -B build-highbit -S "HM-HM-${pkgver}-highbit" \
-        -DCMAKE_BUILD_TYPE:STRING='Release' \
-        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-        -DHIGH_BITDEPTH:BOOL='ON' \
-        -Wno-dev
+    cmake -B build-highbit -S "HM-HM-${pkgver}-highbit" "$_common_opts" -DHIGH_BITDEPTH:BOOL='ON'
     make -C build-highbit
 }
 
@@ -44,8 +41,10 @@
     
     while read -r -d '' _file
     do
-        install -D -m755 "HM-HM-${pkgver}-highbit/bin/${_file}" "${pkgdir}/usr/bin/${_file/Static/HighBitDepthStatic}"
-    done < <(find "HM-HM-${pkgver}-highbit/bin" -maxdepth 1 -type f -executable -print0 | sed -z "s|HM\-HM\-${pkgver}\-highbit/bin||")
+        install -D -m755 "HM-HM-${pkgver}-highbit/bin/${_file}" \
+            "${pkgdir}/usr/bin/${_file/Static/HighBitDepthStatic}"
+    done < <(find "HM-HM-${pkgver}-highbit/bin" -maxdepth 1 -type f -executable -print0 |
+             sed -z "s|HM\-HM\-${pkgver}\-highbit/bin||")
     
     install -D -m644 "HM-HM-${pkgver}/doc"/*.pdf -t "${pkgdir}/usr/share/doc/${pkgname}"
     install -D -m644 "HM-HM-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"



More information about the arch-commits mailing list