[arch-commits] Commit in x264/repos (4 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Mon Sep 15 08:43:56 UTC 2014
Date: Monday, September 15, 2014 @ 10:43:56
Author: bpiotrowski
Revision: 221747
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
x264/repos/staging-i686/
x264/repos/staging-i686/PKGBUILD
(from rev 221746, x264/trunk/PKGBUILD)
x264/repos/staging-x86_64/
x264/repos/staging-x86_64/PKGBUILD
(from rev 221746, x264/trunk/PKGBUILD)
-------------------------+
staging-i686/PKGBUILD | 74 ++++++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/PKGBUILD | 74 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 148 insertions(+)
Copied: x264/repos/staging-i686/PKGBUILD (from rev 221746, x264/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2014-09-15 08:43:56 UTC (rev 221747)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Paul Mattal <paul at archlinux.org>
+
+pkgname=('x264' 'libx264' 'libx264-10bit')
+pkgver=142.20140826
+pkgrel=2
+epoch=1
+arch=('i686' 'x86_64')
+url='http://www.videolan.org/developers/x264.html'
+license=('GPL')
+depends=('glibc')
+makedepends=('yasm' 'git' 'ffmpeg')
+source=(git://git.videolan.org/x264.git#commit=021c0dc6c95c)
+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}
+}
+
+prepare() {
+ cp -r $pkgname $pkgname-10bit
+}
+
+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='CLI tools for encoding H264/AVC video streams'
+ depends=('glibc' 'ffmpeg')
+ provides=('x264-10bit')
+ conflicts=('x264-10bit')
+ replaces=('x264-10bit')
+
+ make -C $pkgbase DESTDIR="$pkgdir" install-cli
+ install -Dm755 $pkgbase-10bit/x264 "$pkgdir"/usr/bin/x264-10bit
+}
+
+package_libx264() {
+ pkgdesc='Library for encoding H264/AVC video streams'
+ depends=('glibc')
+ provides=('x264-dev')
+ conflicts=('x264-dev')
+ replaces=('x264-dev')
+
+ install -d "$pkgdir"/usr/lib
+ make -C $pkgbase DESTDIR="$pkgdir" install-lib-shared
+}
+
+package_libx264-10bit() {
+ pkgdesc='Library for encoding H264/AVC video streams. 10bit-depth.'
+ depends=('glibc')
+ provides=('libx264' 'x264-dev')
+ conflicts=('libx264' 'x264-dev')
+
+ install -d "$pkgdir"/usr/lib
+ make -C $pkgbase-10bit DESTDIR="$pkgdir" install-lib-shared
+}
Copied: x264/repos/staging-x86_64/PKGBUILD (from rev 221746, x264/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2014-09-15 08:43:56 UTC (rev 221747)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Paul Mattal <paul at archlinux.org>
+
+pkgname=('x264' 'libx264' 'libx264-10bit')
+pkgver=142.20140826
+pkgrel=2
+epoch=1
+arch=('i686' 'x86_64')
+url='http://www.videolan.org/developers/x264.html'
+license=('GPL')
+depends=('glibc')
+makedepends=('yasm' 'git' 'ffmpeg')
+source=(git://git.videolan.org/x264.git#commit=021c0dc6c95c)
+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}
+}
+
+prepare() {
+ cp -r $pkgname $pkgname-10bit
+}
+
+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='CLI tools for encoding H264/AVC video streams'
+ depends=('glibc' 'ffmpeg')
+ provides=('x264-10bit')
+ conflicts=('x264-10bit')
+ replaces=('x264-10bit')
+
+ make -C $pkgbase DESTDIR="$pkgdir" install-cli
+ install -Dm755 $pkgbase-10bit/x264 "$pkgdir"/usr/bin/x264-10bit
+}
+
+package_libx264() {
+ pkgdesc='Library for encoding H264/AVC video streams'
+ depends=('glibc')
+ provides=('x264-dev')
+ conflicts=('x264-dev')
+ replaces=('x264-dev')
+
+ install -d "$pkgdir"/usr/lib
+ make -C $pkgbase DESTDIR="$pkgdir" install-lib-shared
+}
+
+package_libx264-10bit() {
+ pkgdesc='Library for encoding H264/AVC video streams. 10bit-depth.'
+ depends=('glibc')
+ provides=('libx264' 'x264-dev')
+ conflicts=('libx264' 'x264-dev')
+
+ install -d "$pkgdir"/usr/lib
+ make -C $pkgbase-10bit DESTDIR="$pkgdir" install-lib-shared
+}
More information about the arch-commits
mailing list