updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / x264-git / PKGBUILD
blob14e1307f1e8459f36796f9ace7043c0fef97b4a0
1 # Maintainer: DrZaius <lou[at]fakeoutdoorsman[dot]com>
2 # Contributor: zhuqin <zhuqin83[at]gmail[dot]com>
3 # Contributor: pressh <pressh[at]gmail[dot]com>
5 pkgname=x264-git
6 pkgver=20111002
7 pkgrel=1
8 pkgdesc="H.264/MPEG-4 AVC video encoder"
9 arch=('i686' 'x86_64')
10 url="http://www.videolan.org/developers/x264.html"
11 license=('GPL')
12 depends=('glibc')
13 makedepends=('git' 'yasm')
14 conflicts=('x264')
15 provides=("x264=$(LANG=C pacman -Si x264 | grep Version | awk '{ print $NF }')") 
17 _gitroot="git://git.videolan.org/x264.git"
18 _gitname="x264"
20 build() {
21   cd $srcdir
22   msg "Connecting to the Git repository..."
23   
24   if [[ -d $srcdir/$_gitname ]] ; then
25     cd $_gitname
26     git pull origin
27   else
28     git clone $_gitroot
29   fi
30   
31   msg "Git clone done"
32   msg "Starting make..."
33   
34   rm -rf $srcdir/$_gitname-build
35   git clone $srcdir/$_gitname $srcdir/$_gitname-build
36   
37   cd $srcdir/$_gitname-build
39   # add '--bit-depth=10' is you want 10 bit output 
40   ./configure --prefix=/usr --enable-static
41   
42   make
45 package() {
46   cd $srcdir/$_gitname-build
47   make DESTDIR=$pkgdir install
48   rm -rf $srcdir/$_gitname-build