summaryrefslogtreecommitdiff
path: root/user/speexdsp/APKBUILD
blob: 9394edc7a0d14b765be5cc862c9d451cc47dec7b (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
# Maintainer: 
pkgname=speexdsp
pkgver=1.2.0
pkgrel=0
pkgdesc="A voice compression format (DSP)"
url="https://www.speex.org/"
arch="all"
options="!check"  # No test suite.
license="BSD-3-Clause"
depends=""
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
replaces="libspeex"
source="https://downloads.xiph.org/releases/speex/$pkgname-$pkgver.tar.gz"

build() {
	_arch_flags=""

	case $CARCH in
	"aarch64") _arch_flags="--disable-neon"
	esac

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-static \
		$_arch_flags
	make
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="e357cd5377415ea66c862302c7cf8bf6a10063cacd903f0846478975b87974cf5bdf00e2c6759d8f4f453c4c869cf284e9dc948a84a83d7b2ab96bd5405c05ec  speexdsp-1.2.0.tar.gz"