# Maintainer: h31 <h31mail@yandex.com>
# Contributor: julroy67 <julroy67 [AT] gmail.com>
pkgname=libvpx-git
pkgver=20100519
pkgrel=1
pkgdesc="The VP8 Codec SDK (from git)"
arch=('i686' 'x86_64')
url="http://www.webmproject.org/"
license=('BSD')
depends=()
makedepends=('gcc-libs' 'git' 'yasm')
provides=()
conflicts=('libvpx')
_gitroot='git://review.webmproject.org/libvpx.git'
_gitname='libvpx'
build() {
msg "Connecting to the GIT server...."
cd "$srcdir"
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..."
cd "$srcdir"
mkdir "$_gitname-build"
cd "$_gitname-build"
"$srcdir/$_gitname/configure" \
--enable-vp8 \
--enable-postproc \
--enable-psnr \
--enable-pic \
--disable-examples \
--disable-install-docs \
--disable-install-bins \
--disable-install-srcs \
--disable-md5
make || return 1
mkdir $pkgdir/usr
make DIST_DIR="$pkgdir/usr" install || return 1
rm $pkgdir/usr/md5sums.txt
}