aboutsummaryrefslogtreecommitdiffstats
path: root/main/opus
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-06-30 23:50:30 +0200
committerWilliam Pitcock <nenolod@dereferenced.org>2017-06-30 22:02:40 +0000
commit0dfb6e96aa13f950acc9cb375baae50238e7acd3 (patch)
treee12a3817339a0af4316e7af8669c3c53ae096975 /main/opus
parentecf76d9c76d2b6a28fb8b444ed56fbaac67b8f86 (diff)
downloadaports-0dfb6e96aa13f950acc9cb375baae50238e7acd3.tar.bz2
aports-0dfb6e96aa13f950acc9cb375baae50238e7acd3.tar.xz
main/opus: upgrade to 1.2.1
Modernize abuild
Diffstat (limited to 'main/opus')
-rw-r--r--main/opus/APKBUILD30
1 files changed, 13 insertions, 17 deletions
diff --git a/main/opus/APKBUILD b/main/opus/APKBUILD
index e18d187b32..2fc3ea3740 100644
--- a/main/opus/APKBUILD
+++ b/main/opus/APKBUILD
@@ -1,25 +1,17 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=opus
-pkgver=1.2
+pkgver=1.2.1
pkgrel=0
pkgdesc="Codec designed for interactive speech and audio transmission over the Internet"
url="http://www.opus-codec.org/"
arch="all"
license="BSD"
depends=""
-depends_dev=""
-makedepends="$depends_dev"
-install=""
+makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://archive.mozilla.org/pub/$pkgname/$pkgname-$pkgver.tar.gz"
-
-builddir="$srcdir"/opus-$pkgver
-
-check() {
- cd "$builddir"
- make check
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
@@ -32,16 +24,20 @@ build() {
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-custom-modes \
- --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
install -Dm644 COPYING \
- "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-sha512sums="1bc8489012923c14fc38577c7b9c78368b627b088be55f6c7a40a825864da5006ec36c65686adbeba7e402fdc6ea793d6f1a6dfd281a2aadd79064ff07091ebc opus-1.2.tar.gz"
+sha512sums="4a98d0a7dbd1a313e89407576805fd733c1192e8ef7e1137e3260025478a1cf1c5a8b71b48c372a0cffe6340524137fe47f181651888284f8221fb4d673f7cd5 opus-1.2.1.tar.gz"