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

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Wed Jun 4 19:27:10 UTC 2014


    Date: Wednesday, June 4, 2014 @ 21:27:10
  Author: bpiotrowski
Revision: 214265

upgpkg: x264 1:142.20140311-2

- build and split out 10bit-depth version (FS#33802)
- split out development headers to avoid conflict between x264 and x264-10bit

Modified:
  x264/trunk/PKGBUILD

----------+
 PKGBUILD |   46 +++++++++++++++++++++++++++++++++++++---------
 1 file changed, 37 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-06-04 18:45:43 UTC (rev 214264)
+++ PKGBUILD	2014-06-04 19:27:10 UTC (rev 214265)
@@ -4,19 +4,23 @@
 # Contributor: damir <damir at archlinux.org>
 # Contributor: Paul Mattal <paul at archlinux.org>
 
-pkgname=x264
+pkgname=('x264' 'x264-10bit' 'x264-dev')
 pkgver=142.20140311
-pkgrel=1
+pkgrel=2
 epoch=1
-pkgdesc='Library for encoding H264/AVC video streams'
 arch=('i686' 'x86_64')
 url='http://www.videolan.org/developers/x264.html'
 license=('GPL')
 depends=('glibc')
 makedepends=('yasm' 'git')
-source=(git://git.videolan.org/x264.git#commit=aff928d2)
+source=(git://git.videolan.org/x264.git#commit=b7a50c16)
 md5sums=('SKIP')
 
+prepare() {
+  sed -i 's/install-lib-dev$//g' $pkgname/Makefile
+  cp -r $pkgname $pkgname-10bit
+}
+
 pkgver() {
   cd $pkgname
   local _ver=$(grep '#define X264_BUILD' x264.h | cut -d' ' -f3)
@@ -27,14 +31,38 @@
 
 build() {
   cd $pkgname
+  ./configure --prefix=/usr \
+    --enable-shared --enable-pic
+  make
 
+  cd ../$pkgname-10bit
   ./configure --prefix=/usr \
-    --enable-shared \
-    --enable-pic
-
+    --enable-shared --enable-pic \
+    --bit-depth=10
   make
 }
 
-package() {
-  make -C $pkgname DESTDIR="$pkgdir" install
+package_x264() {
+  pkgdesc='Library for encoding H264/AVC video streams'
+  depends=('glibc')
+
+  install -d "$pkgdir"/usr/lib
+  make -C $pkgname DESTDIR="$pkgdir" install-cli install-lib-shared
 }
+
+package_x264-10bit() {
+  pkgdesc='Library for encoding H264/AVC video streams. 10bit-depth.'
+  depends=('glibc')
+  provides=('x264')
+  conflicts=('x264')
+
+  install -d "$pkgdir"/usr/lib
+  make -C $pkgname DESTDIR="$pkgdir" install-cli install-lib-shared
+}
+
+package_x264-dev() {
+  pkgdesc='Development files for library for encoding H264/AVC video streams'
+  depends=('x264')
+
+  make -C $pkgbase DESTDIR="$pkgdir" install-lib-dev
+}




More information about the arch-commits mailing list