diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-08-23 17:55:42 -0300 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-08-26 19:14:09 +0000 |
commit | ee418046241b820f2c287d5ae348029fbd66f003 (patch) | |
tree | 3fa2e31889d29a2e2e5ab69961c5baef23d74eab /community | |
parent | 9538962ba2ecfd67399527643f1253279b79a9f4 (diff) | |
download | aports-ee418046241b820f2c287d5ae348029fbd66f003.tar.bz2 aports-ee418046241b820f2c287d5ae348029fbd66f003.tar.xz |
community/libcanberra: move from main
Closes GH-10404
Diffstat (limited to 'community')
-rw-r--r-- | community/libcanberra/APKBUILD | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/community/libcanberra/APKBUILD b/community/libcanberra/APKBUILD new file mode 100644 index 0000000000..0afcaec2dd --- /dev/null +++ b/community/libcanberra/APKBUILD @@ -0,0 +1,74 @@ +# Contributor: +# Maintainer: +pkgname=libcanberra +pkgver=0.30 +pkgrel=2 +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" + +prepare() { + cd "$builddir" + update_config_sub + default_prepare +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make +} + +package() { + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install +} + +gtk2() { + pkgdesc="Gtk+ 2.x Bindings for libcanberra" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libcanberra-gtk.so.* \ + "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/gtk-2.0 \ + "$subpkgdir"/usr/lib/ +} + +gtk3() { + pkgdesc="Gtk+ 3.x Bindings for libcanberra" + mkdir -p "$subpkgdir"/usr/lib/gnome-settings-daemon-3.0/gtk-modules \ + "$subpkgdir"/usr/bin \ + "$subpkgdir"/usr/share/gnome/autostart \ + "$subpkgdir"/usr/share/gnome/shutdown \ + "$subpkgdir"/usr/share/gdm/autostart/LoginWindow + mv "$pkgdir"/usr/lib/gtk-3.0 \ + "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libcanberra-gtk3.so.* \ + "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/bin/canberra-gtk-play \ + "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/share/gnome/autostart/libcanberra-login-sound.desktop \ + "$subpkgdir"/usr/share/gnome/autostart + mv "$pkgdir"/usr/share/gnome/shutdown/libcanberra-logout-sound.sh \ + "$subpkgdir"/usr/share/gnome/autostart/ + mv "$pkgdir"/usr/share/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop \ + "$subpkgdir"/usr/share/gdm/autostart/LoginWindow/ + mv "$pkgdir"/usr/lib/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop \ + "$subpkgdir"/usr/lib/gnome-settings-daemon-3.0/gtk-modules/ +} + +sha512sums="f7543582122256826cd01d0f5673e1e58d979941a93906400182305463d6166855cb51f35c56d807a56dc20b7a64f7ce4391368d24990c1b70782a7d0b4429c2 libcanberra-0.30.tar.xz" |