summaryrefslogtreecommitdiff
path: root/user/opus/APKBUILD
blob: 1fbcc5e1714cc948ce54139a5224f9d6be35e4a4 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: 
pkgname=opus
pkgver=1.3.1
pkgrel=0
pkgdesc="Codec designed for speech and audio transmission"
url="https://www.opus-codec.org/"
arch="all"
license="BSD-3-Clause"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://archive.mozilla.org/pub/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	CFLAGS="$(printf '%s' "$CFLAGS" | sed 's/-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() {
	make check
}

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

sha512sums="6cd5e4d8a0551ed5fb59488c07a5cc18a241d1fde5f9eb9f16cd4e77abcdb4134dd51ad1d737be1e6039bfa56912510b8648152f2478a1f21c7c1d9ce32933cd  opus-1.3.1.tar.gz"