aboutsummaryrefslogtreecommitdiffstats
path: root/main/opus/APKBUILD
blob: e18d187b3201f94ee2da48155667b62e8f476388 (plain)
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
43
44
45
46
47
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=opus
pkgver=1.2
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=""
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
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-custom-modes \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 COPYING \
		"$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
}

sha512sums="1bc8489012923c14fc38577c7b9c78368b627b088be55f6c7a40a825864da5006ec36c65686adbeba7e402fdc6ea793d6f1a6dfd281a2aadd79064ff07091ebc  opus-1.2.tar.gz"