aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-07-12 03:19:22 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-07-14 19:23:44 +0000
commit8255d445813d304032f94bbb14c6770627d7e921 (patch)
treee2f26b7779cd43a5c7913fc6c53d8c87bb334813
parent3286d4d83982f776116845e9e068cab58d83f6b9 (diff)
downloadaports-8255d445813d304032f94bbb14c6770627d7e921.tar.gz
aports-8255d445813d304032f94bbb14c6770627d7e921.tar.bz2
aports-8255d445813d304032f94bbb14c6770627d7e921.tar.xz
main/opus: modernize
- use SPDX license identifier - update url to use https - fix linter warnings
-rw-r--r--main/opus/APKBUILD17
1 files changed, 5 insertions, 12 deletions
diff --git a/main/opus/APKBUILD b/main/opus/APKBUILD
index f772c6d630..00186eb991 100644
--- a/main/opus/APKBUILD
+++ b/main/opus/APKBUILD
@@ -2,18 +2,15 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=opus
pkgver=1.3.1
-pkgrel=0
+pkgrel=1
pkgdesc="Codec designed for interactive speech and audio transmission over the Internet"
-url="http://www.opus-codec.org/"
+url="https://www.opus-codec.org/"
arch="all"
-license="BSD"
+license="BSD-3-Clause"
subpackages="$pkgname-dev $pkgname-doc"
-source="https://archive.mozilla.org/pub/$pkgname/$pkgname-$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
+source="https://archive.mozilla.org/pub/opus/opus-$pkgver.tar.gz"
build() {
- cd "$builddir"
-
CFLAGS="${CFLAGS/-Os/-O2}" ./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -27,16 +24,12 @@ build() {
}
check() {
- cd "$builddir"
make check
}
package() {
- cd "$builddir"
-
make DESTDIR="$pkgdir" install
- install -Dm644 COPYING \
- "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
sha512sums="6cd5e4d8a0551ed5fb59488c07a5cc18a241d1fde5f9eb9f16cd4e77abcdb4134dd51ad1d737be1e6039bfa56912510b8648152f2478a1f21c7c1d9ce32933cd opus-1.3.1.tar.gz"