summaryrefslogtreecommitdiffstats
path: root/x264-git
diff options
context:
space:
mode:
Diffstat (limited to 'x264-git')
-rw-r--r--x264-git/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/x264-git/PKGBUILD b/x264-git/PKGBUILD
new file mode 100644
index 0000000..5b43dab
--- /dev/null
+++ b/x264-git/PKGBUILD
@@ -0,0 +1,50 @@
+# Contributor: zhuqin <zhuqin83@gmail.com>
+
+pkgname=x264-git
+pkgver=20091122
+pkgrel=1
+pkgdesc="free library for encoding H264/AVC video streams"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('libx11')
+makedepends=('git' 'yasm' 'gettext')
+url="http://www.videolan.org/developers/x264.html"
+conflicts=('x264')
+replaces=(x264-svn)
+provides=("x264=$pkgver")
+source=()
+md5sums=()
+
+_gitroot="git://git.videolan.org/x264.git"
+_gitname="x264"
+
+build() {
+ cd $srcdir
+ msg "Connecting to the GIT server...."
+
+ if [[ -d $srcdir/$_gitname ]] ; then
+ cd $_gitname
+ git pull origin
+ msg "The local files are updated."
+ else
+ git clone $_gitroot
+ fi
+
+ msg "GIT checkout done"
+ msg "Starting make..."
+
+ rm -rf $srcdir/$_gitname-build
+ git clone $srcdir/$_gitname $srcdir/$_gitname-build
+
+ cd $srcdir/$_gitname-build
+
+ ./configure --prefix=/usr \
+ --enable-visualize \
+ --enable-shared \
+ --enable-pic || return 1
+
+ make || return 1
+ make DESTDIR=$pkgdir install || return 1
+
+ rm -rf $srcdir/$_gitname-build
+}