summaryrefslogtreecommitdiff
path: root/user/libao/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/libao/APKBUILD')
-rw-r--r--user/libao/APKBUILD21
1 files changed, 15 insertions, 6 deletions
diff --git a/user/libao/APKBUILD b/user/libao/APKBUILD
index 2321e18fd..425116964 100644
--- a/user/libao/APKBUILD
+++ b/user/libao/APKBUILD
@@ -1,19 +1,20 @@
# Maintainer:
pkgname=libao
-pkgver=1.2.0
-pkgrel=2
+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+"
-subpackages="$pkgname-doc $pkgname-dev"
depends=""
-makedepends="alsa-lib-dev"
-source="https://downloads.xiph.org/releases/ao/$pkgname-$pkgver.tar.gz"
+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 \
@@ -28,4 +29,12 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="9456953826c188d67129ad78366bb86d6243499f2cd340d20d61366f7e40a33f3f8ab601c7f18ce9e24aa22f898093b482b2415b7e428c1486ef7e5ac27b3ee4 libao-1.2.0.tar.gz"
+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"