summaryrefslogtreecommitdiffstats
path: root/main/speex/APKBUILD
blob: d98caf782c67a563f463eb39fca727ae2e88991f (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
48
# Maintainer: Natanel Copa <ncopa@alpinelinux.org>
pkgname=speex
pkgver=1.2_rc1
_ver=${pkgver%_*}${pkgver#*_}
pkgrel=2
pkgdesc="an audio compression format designed for speech"
url="http://www.speex.org/"
arch="all"
license="BSD"
depends=
makedepends="libogg-dev"
install=
subpackages="$pkgname-dev $pkgname-doc libspeex"
source="http://downloads.xiph.org/releases/speex/speex-$_ver.tar.gz"

_builddir="$srcdir"/$pkgname-$_ver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/*.la || return 1
}

libspeex() {
	pkgdesc="$pkgdesc - libraries"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libspeex*.so.* "$subpkgdir"/usr/lib/
}


md5sums="c4438b22c08e5811ff10e2b06ee9b9ae  speex-1.2rc1.tar.gz"