diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2014-02-05 22:52:44 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-02-05 22:57:48 +0000 |
commit | 7c5396ff5fc54d776361ecbd54b7af0614f9fb00 (patch) | |
tree | a292f4e26477c431b1e86a6dddd141063f955179 /main/libcanberra | |
parent | f6d0a7207a48d3eb9e7f9297fd67ef978d24bb7f (diff) | |
download | aports-7c5396ff5fc54d776361ecbd54b7af0614f9fb00.tar.bz2 aports-7c5396ff5fc54d776361ecbd54b7af0614f9fb00.tar.xz |
main/libcanberra: add gtk3 support
Diffstat (limited to 'main/libcanberra')
-rw-r--r-- | main/libcanberra/APKBUILD | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/main/libcanberra/APKBUILD b/main/libcanberra/APKBUILD index 78d2fe574a..46562d334e 100644 --- a/main/libcanberra/APKBUILD +++ b/main/libcanberra/APKBUILD @@ -2,14 +2,14 @@ # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=libcanberra pkgver=0.30 -pkgrel=0 +pkgrel=1 pkgdesc="simple audio library for GTK applications" url="http://0pointer.de/lennart/projects/libcanberra/" license="LGPL" depends= -makedepends="gtk+-dev libogg-dev libvorbis-dev alsa-lib-dev libtool" +makedepends="gtk+-dev libogg-dev libvorbis-dev alsa-lib-dev libtool gtk+3.0-dev" install= -subpackages="$pkgname-dev $pkgname-doc" +subpackages="$pkgname-dev $pkgname-doc $pkgname-gtk2 $pkgname-gtk3" source="http://0pointer.de/lennart/projects/$pkgname/$pkgname-$pkgver.tar.xz" arch="all" @@ -41,4 +41,36 @@ package() { find "$pkgdir" -name '*.la' -delete } +gtk2() { + pkgdesc="Gtk+ 2.x Bindings for libcanberra" + mkdir -p "$subpkgdir"/usr/lib || return 1 + mv "$pkgdir"/usr/lib/libcanberra-gtk.so.* \ + "$subpkgdir"/usr/lib/ || return 1 + mv "$pkgdir"/usr/lib/gtk-2.0 \ + "$subpkgdir"/usr/lib/ || return 1 +} + +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 || return 1 + mv "$pkgdir"/usr/lib/gtk-3.0 \ + "$subpkgdir"/usr/lib || return 1 + mv "$pkgdir"/usr/lib/libcanberra-gtk3.so.* \ + "$subpkgdir"/usr/lib || return 1 + mv "$pkgdir"/usr/bin/canberra-gtk-play \ + "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/share/gnome/autostart/libcanberra-login-sound.desktop \ + "$subpkgdir"/usr/share/gnome/autostart || return 1 + mv "$pkgdir"/usr/share/gnome/shutdown/libcanberra-logout-sound.sh \ + "$subpkgdir"/usr/share/gnome/autostart/ || return 1 + mv "$pkgdir"/usr/share/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop \ + "$subpkgdir"/usr/share/gdm/autostart/LoginWindow/ || return 1 + 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/ || return 1 +} + md5sums="34cb7e4430afaf6f447c4ebdb9b42072 libcanberra-0.30.tar.xz" |