# Maintainer: Natanael Copa pkgname=libvpx pkgver=1.4.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 $pkgname-utils" source="http://dev.alpinelinux.org/archive/libvpx/libvpx-$pkgver.tar.gz" # git clone https://code.google.com/p/webm.libvpx # git archive ... # git archive --prefix libvpx-$pkgver/ --format tar.gz -o ../libvpx-$pkgver.tar.gz v$pkgver _builddir="$srcdir"/$pkgname-$_ver prepare() { cd "$_builddir" for i in $patches; do msg $i patch -p1 -i "$srcdir"/$i || return 1 done } build() { cd "$_builddir" # build fix for arm export CROSS=" " bash ./configure \ --enable-pic \ --enable-libs \ --enable-runtime-cpu-detect \ --enable-vp8 \ --enable-vp9 \ --enable-shared \ --disable-install-srcs \ || return 1 make || return 1 } package() { cd "$_builddir" make DIST_DIR="$pkgdir"/usr install chmod 644 "$pkgdir"/usr/include/vpx/*.h \ "$pkgdir"/usr/lib/pkgconfig/* || return 1 chown root:root -R "$pkgdir" || return 1 chmod 755 "$pkgdir"/usr/lib/* || return 1 } utils() { pkgdesc="VP8 utilities and tools" install -d "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="2eafe6c8061d3c873911ecbe18d5d551 libvpx-1.4.0.tar.gz" sha256sums="e309084605377ea71c3998edef05ddc6ff0ab436c9ad755f33e480e8b04d87a7 libvpx-1.4.0.tar.gz" sha512sums="de489fb041229bf10e0d6266f6e85a698bd14602c28261afd844f14fbfcbf2100c0cc915a33dc730af628f5db7494906cd61cb1ec3ad47d1feffefcd87a03ee2 libvpx-1.4.0.tar.gz"