Date: Wednesday, June 4, 2014 @ 21:27:30
  Author: bpiotrowski
Revision: 214266

archrelease: copy trunk to extra-x86_64

Added:
  x264/repos/extra-x86_64/PKGBUILD
    (from rev 214265, x264/trunk/PKGBUILD)
Deleted:
  x264/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |  108 ++++++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 68 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2014-06-04 19:27:10 UTC (rev 214265)
+++ PKGBUILD    2014-06-04 19:27:30 UTC (rev 214266)
@@ -1,40 +0,0 @@
-# $Id$
-# Maintainer:  Ionut Biru <ib...@archlinux.org>
-# Maintainer:  Bartłomiej Piotrowski <bpiotrow...@archlinux.org>
-# Contributor: damir <da...@archlinux.org>
-# Contributor: Paul Mattal <p...@archlinux.org>
-
-pkgname=x264
-pkgver=142.20140311
-pkgrel=1
-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)
-md5sums=('SKIP')
-
-pkgver() {
-  cd $pkgname
-  local _ver=$(grep '#define X264_BUILD' x264.h | cut -d' ' -f3)
-  local _date=$(git log -1 --format="%cd" --date=short | tr -d -)
-
-  echo ${_ver}.${_date}
-}
-
-build() {
-  cd $pkgname
-
-  ./configure --prefix=/usr \
-    --enable-shared \
-    --enable-pic
-
-  make
-}
-
-package() {
-  make -C $pkgname DESTDIR="$pkgdir" install
-}

Copied: x264/repos/extra-x86_64/PKGBUILD (from rev 214265, x264/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2014-06-04 19:27:30 UTC (rev 214266)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer:  Ionut Biru <ib...@archlinux.org>
+# Maintainer:  Bartłomiej Piotrowski <bpiotrow...@archlinux.org>
+# Contributor: damir <da...@archlinux.org>
+# Contributor: Paul Mattal <p...@archlinux.org>
+
+pkgname=('x264' 'x264-10bit' 'x264-dev')
+pkgver=142.20140311
+pkgrel=2
+epoch=1
+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=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)
+  local _date=$(git log -1 --format="%cd" --date=short | tr -d -)
+
+  echo ${_ver}.${_date}
+}
+
+build() {
+  cd $pkgname
+  ./configure --prefix=/usr \
+    --enable-shared --enable-pic
+  make
+
+  cd ../$pkgname-10bit
+  ./configure --prefix=/usr \
+    --enable-shared --enable-pic \
+    --bit-depth=10
+  make
+}
+
+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
+}

Reply via email to