diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-14 13:25:27 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-09 13:00:34 +0000 |
commit | 0578ee06db86020eb127a24fd37a39db68b857f5 (patch) | |
tree | ea509bcf95a6e67859ca49d16c6f9149d19c22aa /main/libvpx/APKBUILD | |
parent | 6941578f2f0a5ecd916c5ada33c11de0c6d7652d (diff) | |
download | aports-0578ee06db86020eb127a24fd37a39db68b857f5.tar.bz2 aports-0578ee06db86020eb127a24fd37a39db68b857f5.tar.xz |
main/libvpx: upgrade to 1.6.1 and modernize
Diffstat (limited to 'main/libvpx/APKBUILD')
-rw-r--r-- | main/libvpx/APKBUILD | 42 |
1 files changed, 12 insertions, 30 deletions
diff --git a/main/libvpx/APKBUILD b/main/libvpx/APKBUILD index a4dea3bba7..9fa41ea6c8 100644 --- a/main/libvpx/APKBUILD +++ b/main/libvpx/APKBUILD @@ -1,34 +1,19 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libvpx -pkgver=1.5.0 -_ver=${pkgver/_/-} +pkgver=1.6.1 pkgrel=0 pkgdesc="Library for the vp8 codec" url="http://www.webmproject.org/" arch="all" license="GPL" -depends= +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 -} +source="https://storage.googleapis.com/downloads.webmproject.org/releases/webm/$pkgname-$pkgver.tar.bz2" +builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" + cd "$builddir" # build fix for arm export CROSS=" " bash ./configure \ @@ -39,18 +24,17 @@ build() { --enable-vp9 \ --enable-shared \ --disable-install-srcs \ - --enable-postproc \ - || return 1 - make || return 1 + --enable-postproc + make } package() { - cd "$_builddir" + 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 + "$pkgdir"/usr/lib/pkgconfig/* + chown root:root -R "$pkgdir" + chmod 755 "$pkgdir"/usr/lib/* } utils() { @@ -59,6 +43,4 @@ utils() { mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } -md5sums="3ee354ac638de8408fa4cb1ac3283cf2 libvpx-1.5.0.tar.gz" -sha256sums="832d47aba166d810b9db2a6d686617b65c0684a0a3251638fa325a6d869c40e0 libvpx-1.5.0.tar.gz" -sha512sums="6e0205b3728bce238658daaabd28f373d18e54494b098bdea63e4e66519f36fde9017266874a8a064dd55effff4ce2ab50fdcb03bcf9a1563c62b1597eb11832 libvpx-1.5.0.tar.gz" +sha512sums="1a4b009fe1737715c6563a79848126a5859394a5074b1e9cca9bc2e213df90890c15e708040d5f2c96c7c21e268f51e1352ac6911514bf891a4bf3eea154159d libvpx-1.6.1.tar.bz2" |