diff options
author | root <root@rshg047.dnsready.net> | 2011-05-01 22:33:26 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-01 22:33:26 +0000 |
commit | 40f0b1c7106cc1fed13f14e80f083ecd69c416f5 (patch) | |
tree | faeb03af48db54c663f74f3f188b9c1c56ca6a0b /extra/libcanberra/PKGBUILD | |
parent | c173ac862828a54925737fc1d90ede1dd09a312c (diff) |
Sun May 1 22:33:26 UTC 2011
Diffstat (limited to 'extra/libcanberra/PKGBUILD')
-rw-r--r-- | extra/libcanberra/PKGBUILD | 39 |
1 files changed, 27 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}" +} |