updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / libvpx-git / PKGBUILD
blob133982639c32f8c51cd9043aed818114af50b2ac
1 # Contributor: Det <nimetonmaili at gmail a-dot com>
2 # Contributor: h31 <h31mail@yandex.com>
3 # Contributor: julroy67 <julroy67 [AT] gmail.com>
5 pkgname=libvpx-git
6 pkgver=20111001
7 pkgrel=1
8 pkgdesc="The VP8 Codec SDK (git version)"
9 arch=('i686' 'x86_64')
10 url="http://www.webmproject.org/"
11 license=('BSD')
12 makedepends=('git' 'yasm')
13 provides=('libvpx=0.9.5')
14 conflicts=('libvpx')
16 _gitroot='http://git.chromium.org/webm/libvpx.git'
17 _gitname='libvpx'
19 build() {
20   msg "Connecting to the GIT server...."
21   cd "$srcdir"
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 --depth 1
29   fi
31   msg "GIT checkout done"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build/"
35   cp -r "$srcdir/$_gitname/" "$srcdir/$_gitname-build/"
37   cd "$srcdir/$_gitname-build/"
39     ./configure --prefix=/usr --enable-vp8 \
40         --enable-runtime-cpu-detect \
41         --enable-shared \
42         --enable-postproc \
43         --enable-pic \
44         --disable-install-docs \
45         --disable-install-srcs
47   make
50 package() {
51   cd "$srcdir/$_gitname-build/"
53   make DIST_DIR="$pkgdir/usr" install