1 # Maintainer: Felix Yan <felixonmars[at]gmail[dot]com>
2 # Contributor: DrZaius <lou[at]fakeoutdoorsman[dot]com>
3 # Contributor: zhuqin <zhuqin83[at]gmail[dot]com>
4 # Contributor: pressh <pressh[at]gmail[dot]com>
9 pkgdesc="H.264/MPEG-4 AVC video encoder with JEEB's patchsets"
10 arch=('i686' 'x86_64')
11 url="http://x264.fushizen.eu/"
14 makedepends=('git' 'yasm')
16 provides=("x264-git" "x264=$(LANG=C pacman -Si x264 | grep Version | awk '{ print $NF }')")
17 source=(http://x264.fushizen.eu/patches/x264_2120_patches.patch)
18 md5sums=('439ea38cd0c2c8408af6ecd81b7c3acc')
20 _gitroot="https://github.com/silverfilain/x264_L-SMASH.git"
21 _gitorigroot="git://git.videolan.org/x264.git"
22 _gitname="x264_L-SMASH"
26 msg "Connecting to the GIT server...."
28 if [[ -d $srcdir/$_gitname ]] ; then
31 msg "The local files are updated."
35 git remote add porigin $_gitorigroot
38 msg "Merging origin..."
41 git merge porigin/master
43 msg "GIT checkout done"
44 msg "Starting make..."
46 rm -rf $srcdir/$_gitname-build
47 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
49 cd $srcdir/$_gitname-build
50 patch -p1 -i ../*.patch
57 make DESTDIR=$pkgdir install
59 rm -rf $srcdir/$_gitname-build