aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-23 17:59:53 -0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-08-26 19:14:09 +0000
commit831c9a44939a7b6c8522bafdadeee1b5788667f2 (patch)
treed458b71ffc07a7cfe27a382a3ef02e25faa54edc
parentee418046241b820f2c287d5ae348029fbd66f003 (diff)
downloadaports-831c9a44939a7b6c8522bafdadeee1b5788667f2.tar.bz2
aports-831c9a44939a7b6c8522bafdadeee1b5788667f2.tar.xz
community/libcanberra: add pulseaudio support
closes GH-6936 Closes GH-10404
-rw-r--r--community/libcanberra/APKBUILD32
1 files changed, 17 insertions, 15 deletions
diff --git a/community/libcanberra/APKBUILD b/community/libcanberra/APKBUILD
index 0afcaec2dd..3cfd7d4e23 100644
--- a/community/libcanberra/APKBUILD
+++ b/community/libcanberra/APKBUILD
@@ -1,29 +1,24 @@
-# Contributor:
-# Maintainer:
+# Contributor:
+# Maintainer:
pkgname=libcanberra
pkgver=0.30
-pkgrel=2
+pkgrel=3
pkgdesc="Simple audio library for GTK applications"
url="http://0pointer.de/lennart/projects/libcanberra/"
arch="all"
options="!check" # No test suite.
-license="LGPL-2.1+"
-depends=
-makedepends="gtk+-dev libogg-dev libvorbis-dev alsa-lib-dev libtool gtk+3.0-dev"
-install=
-subpackages="$pkgname-dev $pkgname-doc $pkgname-gtk2 $pkgname-gtk3"
-source="https://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.xz"
-
-depends_dev="$makedepends"
+license="LGPL-2.1-or-later"
+makedepends="gtk+-dev libogg-dev libvorbis-dev alsa-lib-dev libtool gtk+3.0-dev
+ pulseaudio-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-gtk2 $pkgname-gtk3 $pkgname-pulse"
+source="https://dev.alpinelinux.org/archive/libcanberra/libcanberra-$pkgver.tar.xz"
prepare() {
- cd "$builddir"
- update_config_sub
default_prepare
+ update_config_sub
}
build() {
- cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,7 +30,6 @@ build() {
}
package() {
- cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
}
@@ -71,4 +65,12 @@ gtk3() {
"$subpkgdir"/usr/lib/gnome-settings-daemon-3.0/gtk-modules/
}
+pulse() {
+ pkgdesc="Pulseaudio backend for libcanberra"
+ install_if="$pkgname=$pkgver-r$pkgrel pulseaudio"
+ mkdir -p "$subpkgdir"/usr/lib/libcanberra-$pkgver
+ mv "$pkgdir"/usr/lib/libcanberra-$pkgver/libcanberra-pulse.so \
+ "$subpkgdir"/usr/lib/libcanberra-$pkgver
+}
+
sha512sums="f7543582122256826cd01d0f5673e1e58d979941a93906400182305463d6166855cb51f35c56d807a56dc20b7a64f7ce4391368d24990c1b70782a7d0b4429c2 libcanberra-0.30.tar.xz"