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

Maxime Gauduin alucryd at archlinux.org
Fri Dec 8 09:53:13 UTC 2017


    Date: Friday, December 8, 2017 @ 09:53:12
  Author: alucryd
Revision: 311906

upgpkg: x265 2.6-1

Modified:
  x265/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++-------------------
 1 file changed, 7 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-08 09:35:39 UTC (rev 311905)
+++ PKGBUILD	2017-12-08 09:53:12 UTC (rev 311906)
@@ -4,7 +4,7 @@
 # Contributor: kfgz <kfgz at interia.pl>
 
 pkgname=x265
-pkgver=2.5
+pkgver=2.6
 pkgrel=1
 pkgdesc='Open Source H265/HEVC video encoder'
 arch=('x86_64')
@@ -14,12 +14,12 @@
 makedepends=('yasm' 'cmake')
 provides=('libx265.so')
 source=("https://bitbucket.org/multicoreware/x265/downloads/x265_${pkgver}.tar.gz")
-sha256sums=('2e53259b504a7edb9b21b9800163b1ff4c90e60c74e23e7001d423c69c5d3d17')
+sha256sums=('1bf0036415996af841884802161065b9e6be74f5f6808ac04831363e2549cdbf')
 
 prepare() {
-  cd x265_${pkgver}
+  cd x265_v${pkgver}
 
-  for d in 8 $([[ $CARCH == 'x86_64' ]] && echo "10 12"); do
+  for d in 8 10 12; do
     if [[ -d build-$d ]]; then
       rm -rf build-$d
     fi
@@ -28,10 +28,8 @@
 }
 
 build() {
-  if [[ $CARCH == x86_64 ]]; then
+    cd x265_v${pkgver}/build-12
 
-    cd x265_${pkgver}/build-12
-
     cmake ../source \
       -DCMAKE_INSTALL_PREFIX='/usr' \
       -DHIGH_BIT_DEPTH='TRUE' \
@@ -61,24 +59,14 @@
       -DENABLE_SHARED='TRUE' \
       -DENABLE_HDR10_PLUS='TRUE' \
       -DEXTRA_LIB='x265_main10.a;x265_main12.a' \
-      -DEXTRA_LINK_FLAGS='-L.' \
+      -DEXTRA_LINK_FLAGS='-L .' \
       -DLINKED_10BIT='TRUE' \
       -DLINKED_12BIT='TRUE'
     make
-
-  else
-
-    cd x265_${pkgver}/build-8
-
-    cmake ../source \
-      -DCMAKE_INSTALL_PREFIX='/usr' \
-      -DENABLE_SHARED='TRUE'
-
-  fi
 }
 
 package() {
-  cd x265_${pkgver}/build-8
+  cd x265_v${pkgver}/build-8
 
   make DESTDIR="${pkgdir}" install
 }



More information about the arch-commits mailing list