summaryrefslogtreecommitdiff
path: root/user/opus/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-09 21:57:13 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-09 21:57:13 -0500
commit8ace36f8ece035543148daf191256a6657ce4894 (patch)
tree46cd51de6933a7de399387d58a8c23d7de30086d /user/opus/APKBUILD
parent48062dbff757ffabd9a580ee8de6b05d37dcc4bd (diff)
downloadpackages-8ace36f8ece035543148daf191256a6657ce4894.tar.gz
packages-8ace36f8ece035543148daf191256a6657ce4894.tar.bz2
packages-8ace36f8ece035543148daf191256a6657ce4894.tar.xz
packages-8ace36f8ece035543148daf191256a6657ce4894.zip
user/opus: pull in, bump, fix
Diffstat (limited to 'user/opus/APKBUILD')
-rw-r--r--user/opus/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/opus/APKBUILD b/user/opus/APKBUILD
new file mode 100644
index 000000000..fa25fbc54
--- /dev/null
+++ b/user/opus/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=opus
+pkgver=1.2.1
+pkgrel=2
+pkgdesc="Codec designed for speech and audio transmission"
+url="http://www.opus-codec.org/"
+arch="all"
+license="BSD-3-Clause"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://archive.mozilla.org/pub/$pkgname/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ CFLAGS="${CFLAGS/-Os/-O2}" ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-custom-modes
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+sha512sums="4a98d0a7dbd1a313e89407576805fd733c1192e8ef7e1137e3260025478a1cf1c5a8b71b48c372a0cffe6340524137fe47f181651888284f8221fb4d673f7cd5 opus-1.2.1.tar.gz"