aboutsummaryrefslogtreecommitdiffstats
path: root/main/opusfile/APKBUILD
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2017-11-30 05:11:01 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-30 08:53:31 +0000
commite635fe5794f79419e83076a73bfe5447cf3c730a (patch)
tree4a460ec802e92c44f9330fe59a31e269d84c9556 /main/opusfile/APKBUILD
parentb71c2ae4be19a147fa924274376903c359bee14a (diff)
downloadaports-e635fe5794f79419e83076a73bfe5447cf3c730a.tar.gz
aports-e635fe5794f79419e83076a73bfe5447cf3c730a.tar.bz2
aports-e635fe5794f79419e83076a73bfe5447cf3c730a.tar.xz
main/opusfile: upgrade to 0.10; modernize
Diffstat (limited to 'main/opusfile/APKBUILD')
-rw-r--r--main/opusfile/APKBUILD30
1 files changed, 17 insertions, 13 deletions
diff --git a/main/opusfile/APKBUILD b/main/opusfile/APKBUILD
index 1185dd056e..3ec7987abd 100644
--- a/main/opusfile/APKBUILD
+++ b/main/opusfile/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=opusfile
-pkgver=0.8
-pkgrel=3
+pkgver=0.10
+pkgrel=0
pkgdesc="A high-level API for decoding and seeking within .opus files"
url="http://www.opus-codec.org/"
arch="all"
@@ -14,10 +14,11 @@ subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.xiph.org/releases/opus/$pkgname-$pkgver.tar.gz
libressl.patch
"
-
builddir="$srcdir"/$pkgname-$pkgver
+
build() {
cd "$builddir"
+
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -26,19 +27,22 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
- --disable-static \
- || return 1
- make || return 1
+ --disable-static
+
+ make
+}
+
+check() {
+ cd "$builddir"
+
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+
+ make DESTDIR="$pkgdir" install
}
-md5sums="78ad26f75900dc8428d75e6e4256196d opusfile-0.8.tar.gz
-2fea17f38577c79482b4fa500cc71497 libressl.patch"
-sha256sums="2c231ed3cfaa1b3173f52d740e5bbd77d51b9dfecb87014b404917fba4b855a4 opusfile-0.8.tar.gz
-b00620ae7355365fc198bc0d2b83b1d762bff120bc93c36350ab3a3f1a509bdf libressl.patch"
-sha512sums="4db553211ac52b9cd9c03449e602fb720d757df385b74e076ce3552a17ecf0e80c861c326fd2570b26f5ffc1c42dff781eef61c25d7a016116a021c9d2176bbb opusfile-0.8.tar.gz
-cf5e8c56dad2e56dcc9b5d1d655d8b1469ce0cd59a19593c20b98bdb1d843c9f98d5ac2c4b3a3836b93e5e9cc7807f4fa5e5430d69d6fb81a9bf2e33491e1f31 libressl.patch"
+sha512sums="302601c31ca28bff175cefa99ac16177122a786d043be229616e2c98b7ffaf4a96b8bb17ca16e31240325a92763f417315b54d8f1b2f4f63f445cb7ad43c4a37 opusfile-0.10.tar.gz
+4a5572bb0671e8bf38d70883d61257e182e4e417828c65461351649728ab5560c7da0d5d4560a30bbad256bfcafa874322a8f1470a796f4948af93d50dd4a74e libressl.patch"