summaryrefslogtreecommitdiff
path: root/user/opus/APKBUILD
blob: fa25fbc54380060cc3e2c6c0b68019490a36c0f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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"