# Maintainer: Natanael Copa pkgname=libvpx pkgver=1.0.0 _ver=${pkgver/_/-} pkgrel=0 pkgdesc="Library for the vp8 codec" url="http://www.webmproject.org/" arch="all" license="GPL" depends= makedepends="coreutils yasm bash perl" install= subpackages="$pkgname-dev" source="http://webm.googlecode.com/files/libvpx-v$_ver.tar.bz2" _builddir="$srcdir"/$pkgname-v$_ver prepare() { cd "$_builddir" } build() { cd "$_builddir" ./configure \ --enable-pic \ --enable-libs \ --enable-runtime-cpu-detect \ --enable-vp8 \ --disable-install-srcs \ || return 1 make || return 1 } package() { cd "$_builddir" make DIST_DIR="$pkgdir"/usr install chmod 644 "$pkgdir"/usr/include/vpx/*.h } md5sums="d987b5140412edd37d2c6b10c29ad484 libvpx-v1.0.0.tar.bz2"