Skip to content

Commit

Permalink
community/libcanberra: add pulseaudio support
Browse files Browse the repository at this point in the history
  • Loading branch information
maxice8 authored and Ikke committed Aug 26, 2019
1 parent ee41804 commit 831c9a4
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions community/libcanberra/APKBUILD
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -35,7 +30,6 @@ build() {
}

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

Expand Down Expand Up @@ -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"

0 comments on commit 831c9a4

Please sign in to comment.