summaryrefslogtreecommitdiff
path: root/testing/libcanberra
diff options
context:
space:
mode:
Diffstat (limited to 'testing/libcanberra')
-rw-r--r--testing/libcanberra/PKGBUILD72
-rw-r--r--testing/libcanberra/libcanberra-gtk-module.sh10
-rw-r--r--testing/libcanberra/libcanberra-quit-add.patch24
-rw-r--r--testing/libcanberra/libcanberra.install23
4 files changed, 0 insertions, 129 deletions
diff --git a/testing/libcanberra/PKGBUILD b/testing/libcanberra/PKGBUILD
deleted file mode 100644
index f5052b769..000000000
--- a/testing/libcanberra/PKGBUILD
+++ /dev/null
@@ -1,72 +0,0 @@
-# $Id: PKGBUILD 109949 2011-02-14 08:47:45Z ibiru $
-# Maintainer: Jan de Groot <jgc@archlinux.org>
-
-pkgbase=libcanberra
-pkgname=(libcanberra libcanberra-pulse libcanberra-gstreamer)
-pkgver=0.26
-pkgrel=5
-pkgdesc="A small and lightweight implementation of the XDG Sound Theme Specification"
-arch=(i686 x86_64 'mips64el')
-license=('LGPL')
-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-quit-add.patch)
-md5sums=('ee2c66ada7c851a4e7b6eb1682285a24'
- '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
- make
-}
-
-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,3}.0/modules/*.la
-
- install -m755 -d "${pkgdir}/usr/share/gconf"
- mv "${pkgdir}/etc/gconf/schemas" "${pkgdir}/usr/share/gconf/"
-
- 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 plugins
- for _p in pulse gstreamer; do
- mkdir $_p-plugin
- mv "${pkgdir}"/usr/lib/${pkgbase}-${pkgver}/${pkgbase}-$_p.* $_p-plugin
- done
-}
-
-package_libcanberra-pulse() {
- pkgdesc="PulseAudio plugin for libcanberra"
- depends=("$pkgbase=$pkgver-$pkgrel" 'libpulse')
- groups=('pulseaudio-gnome')
-
- cd "${srcdir}/${pkgbase}-${pkgver}"
-
- mkdir -p "${pkgdir}/usr/lib/${pkgbase}-${pkgver}"
- 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/testing/libcanberra/libcanberra-gtk-module.sh b/testing/libcanberra/libcanberra-gtk-module.sh
deleted file mode 100644
index fbb7ff783..000000000
--- a/testing/libcanberra/libcanberra-gtk-module.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-if [ -z "$GTK_MODULES" ] ; then
- GTK_MODULES="canberra-gtk-module"
-else
- GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
-fi
-
-export GTK_MODULES
-
diff --git a/testing/libcanberra/libcanberra-quit-add.patch b/testing/libcanberra/libcanberra-quit-add.patch
deleted file mode 100644
index 0094569ae..000000000
--- a/testing/libcanberra/libcanberra-quit-add.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-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);
diff --git a/testing/libcanberra/libcanberra.install b/testing/libcanberra/libcanberra.install
deleted file mode 100644
index 7f5012199..000000000
--- a/testing/libcanberra/libcanberra.install
+++ /dev/null
@@ -1,23 +0,0 @@
-pkgname=libcanberra
-
-post_install() {
- if [ -x usr/sbin/gconfpkg ]; then
- usr/sbin/gconfpkg --install ${pkgname}
- fi
-}
-
-pre_upgrade() {
- if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then
- pre_remove
- fi
-}
-
-post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- if [ -x usr/sbin/gconfpkg ]; then
- usr/sbin/gconfpkg --uninstall ${pkgname}
- fi
-}