summaryrefslogtreecommitdiff
path: root/extra/libcanberra
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-01 22:33:26 +0000
committerroot <root@rshg047.dnsready.net>2011-05-01 22:33:26 +0000
commit40f0b1c7106cc1fed13f14e80f083ecd69c416f5 (patch)
treefaeb03af48db54c663f74f3f188b9c1c56ca6a0b /extra/libcanberra
parentc173ac862828a54925737fc1d90ede1dd09a312c (diff)
Sun May 1 22:33:26 UTC 2011
Diffstat (limited to 'extra/libcanberra')
-rw-r--r--extra/libcanberra/PKGBUILD39
-rw-r--r--extra/libcanberra/libcanberra-quit-add.patch24
2 files changed, 51 insertions, 12 deletions
diff --git a/extra/libcanberra/PKGBUILD b/extra/libcanberra/PKGBUILD
index a563255b2..95fc05a5d 100644
--- a/extra/libcanberra/PKGBUILD
+++ b/extra/libcanberra/PKGBUILD
@@ -1,24 +1,26 @@
-# $Id: PKGBUILD 13455 2008-09-27 11:03:58Z jgc $
+# $Id: PKGBUILD 109949 2011-02-14 08:47:45Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgbase=libcanberra
-pkgname=(libcanberra libcanberra-pulse)
+pkgname=(libcanberra libcanberra-pulse libcanberra-gstreamer)
pkgver=0.26
-pkgrel=3
+pkgrel=5
pkgdesc="A small and lightweight implementation of the XDG Sound Theme Specification"
arch=(i686 x86_64)
license=('LGPL')
-depends=('libvorbis>=1.3.1' 'gstreamer0.10>=0.10.30' 'libtool>=2.2.10' 'gtk2>=2.21.8' 'alsa-lib>=1.0.23' 'tdb>=1.2.1')
-makedepends=('gtk-doc' 'libpulse')
+depends=('libvorbis' 'libtool' 'alsa-lib' 'tdb')
+makedepends=('gtk-doc' 'libpulse' 'gstreamer0.10' 'gtk2' 'gtk3')
options=(!emptydirs)
url=http://0pointer.de/lennart/projects/libcanberra
source=(http://0pointer.de/lennart/projects/${pkgbase}/${pkgbase}-${pkgver}.tar.gz
- libcanberra-gtk-module.sh)
+ libcanberra-gtk-module.sh libcanberra-quit-add.patch)
md5sums=('ee2c66ada7c851a4e7b6eb1682285a24'
- 'a54799e624aac814b9343ab05f25c38b')
+ 'a54799e624aac814b9343ab05f25c38b'
+ 'a147bce8a7addcd40b21faaaf028819b')
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
+ patch -Np1 -i "${srcdir}/libcanberra-quit-add.patch"
./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var \
--disable-static --with-builtin=dso --enable-null --disable-oss \
--enable-alsa --enable-gstreamer --enable-pulse
@@ -27,11 +29,13 @@ build() {
package_libcanberra() {
install=libcanberra.install
+ optdepends=("$pkgbase-pulse: PulseAudio driver"
+ "$pkgbase-gstreamer: GStreamer driver")
cd "${srcdir}/${pkgbase}-${pkgver}"
make -j1 DESTDIR="${pkgdir}" install
- rm -f "${pkgdir}/usr/lib/libcanberra-gtk.la"
- rm -f "${pkgdir}/usr/lib/gtk-2.0/modules/"*.la
+ rm -f "${pkgdir}"/usr/lib/libcanberra-gtk*.la
+ rm -f "${pkgdir}"/usr/lib/gtk-{2,3}.0/modules/*.la
install -m755 -d "${pkgdir}/usr/share/gconf"
mv "${pkgdir}/etc/gconf/schemas" "${pkgdir}/usr/share/gconf/"
@@ -39,9 +43,11 @@ package_libcanberra() {
install -m755 -d "${pkgdir}/etc/X11/xinit/xinitrc.d"
install -m755 "${srcdir}/libcanberra-gtk-module.sh" "${pkgdir}/etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module"
- # Split libcanberra-pulse
- mkdir pulse-plugin
- mv "${pkgdir}"/usr/lib/${pkgbase}-${pkgver}/${pkgbase}-pulse.* pulse-plugin
+ # Split plugins
+ for _p in pulse gstreamer; do
+ mkdir $_p-plugin
+ mv "${pkgdir}"/usr/lib/${pkgbase}-${pkgver}/${pkgbase}-$_p.* $_p-plugin
+ done
}
package_libcanberra-pulse() {
@@ -55,3 +61,12 @@ package_libcanberra-pulse() {
mv pulse-plugin/* "${pkgdir}/usr/lib/${pkgbase}-${pkgver}"
}
+package_libcanberra-gstreamer() {
+ pkgdesc="GStreamer plugin for libcanberra"
+ depends=("$pkgbase=$pkgver-$pkgrel" 'gstreamer0.10')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+
+ mkdir -p "${pkgdir}/usr/lib/${pkgbase}-${pkgver}"
+ mv gstreamer-plugin/* "${pkgdir}/usr/lib/${pkgbase}-${pkgver}"
+}
diff --git a/extra/libcanberra/libcanberra-quit-add.patch b/extra/libcanberra/libcanberra-quit-add.patch
new file mode 100644
index 000000000..0094569ae
--- /dev/null
+++ b/extra/libcanberra/libcanberra-quit-add.patch
@@ -0,0 +1,24 @@
+diff -up libcanberra-0.26/src/canberra-gtk-module.c.quit-add libcanberra-0.26/src/canberra-gtk-module.c
+--- libcanberra-0.26/src/canberra-gtk-module.c.quit-add 2011-01-07 22:48:49.388992626 -0500
++++ libcanberra-0.26/src/canberra-gtk-module.c 2011-01-07 22:49:02.339995153 -0500
+@@ -932,11 +932,6 @@ static void connect_settings(void) {
+ connected = TRUE;
+ }
+
+-static gboolean quit_handler(gpointer data) {
+- dispatch_queue();
+- return FALSE;
+-}
+-
+ G_MODULE_EXPORT void gtk_module_init(gint *argc, gchar ***argv[]) {
+
+ /* This is the same quark libgnomeui uses! */
+@@ -963,8 +958,6 @@ G_MODULE_EXPORT void gtk_module_init(gin
+ install_hook(GTK_TYPE_WIDGET, "drag-drop", &signal_id_widget_drag_drop);
+ install_hook(GTK_TYPE_WIDGET, "drag-failed", &signal_id_widget_drag_failed);
+ install_hook(GTK_TYPE_EXPANDER, "activate", &signal_id_expander_activate);
+-
+- gtk_quit_add(1, quit_handler, NULL);
+ }
+
+ G_MODULE_EXPORT gchar* g_module_check_init(GModule *module);