updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / x262 / PKGBUILD
blob162c242a77837ae420471db905be33b7b8dc91e0
1 # Contributor: DrZaius <lou[at]fakeoutdoorsman[dot]com>
3 pkgname=x262
4 pkgver=20110606
5 pkgrel=1
6 pkgdesc="x264 with MPEG-2 support"
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 depends=('glibc')
10 makedepends=('git' 'yasm')
11 url="https://github.com/kierank/x262"
12 conflicts=('x264')
13 source=()
14 md5sums=()
16 _gitroot="git://github.com/kierank/x262.git"
17 _gitname="x262"
19 build() {
20   cd $srcdir
21   msg "Connecting to the GIT server...."
22   
23   if [[ -d $srcdir/$_gitname ]] ; then
24     cd $_gitname
25     git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
30   
31   msg "GIT checkout 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   chmod +x configure
41   ./configure --prefix=/usr --enable-static
42   
43   make
44   make DESTDIR=$pkgdir install
45   
46   rm -rf $srcdir/$_gitname-build