summaryrefslogtreecommitdiff
path: root/user/libao/APKBUILD
blob: 4251169645925a0acc72d2b6215102700524f576 (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
# Maintainer: 
pkgname=libao
pkgver=1.2.2
pkgrel=0
pkgdesc="Cross-platform audio output library and plugins"
url="https://xiph.org/ao/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0+"
depends=""
makedepends="alsa-lib-dev autoconf automake pulseaudio-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-pulse"
source="$pkgname-$pkgver.tar.gz::https://github.com/xiph/libao/archive/$pkgver.tar.gz"

build() {
	cd "$builddir"
	./autogen.sh
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-esd \
		--disable-arts
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

pulse() {
	pkgdesc="$pkgdesc (PulseAudio support)"
	install_if="$pkgname=$pkgver-r$pkgrel pulseaudio"
	mkdir -p "$subpkgdir"/usr/lib/ao/plugins-4
	mv "$pkgdir"/usr/lib/ao/plugins-4/libpulse.so \
		"$subpkgdir"/usr/lib/ao/plugins-4
}

sha512sums="d2736d25b60862e7d7469611ce31b1df40a4366ab160e2ff1b46919ae91692d1596c8468e4f016303b306fc3ac1bddc7b727f535a362f403c3fe7c6532e9045a  libao-1.2.2.tar.gz"