1 # $Id: PKGBUILD 13455 2008-09-27 11:03:58Z jgc $
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
4 pkgname=libcanberra-oss
8 pkgdesc="A small and lightweight implementation of the XDG Sound Theme Specification"
9 url=http://0pointer.de/lennart/projects/libcanberra
12 depends=('libvorbis' 'gtk2>=2.21.8' 'tdb>=1.2.1')
13 makedepends=('gtk-doc' 'gstreamer0.10>=0.10.30' 'libtool')
14 provides=('libcanberra' "libcanberra=$pkgver")
15 conflicts=('libcanberra')
16 install=libcanberra.install
18 source=(http://0pointer.de/lennart/projects/${_realname}/${_realname}-${pkgver}.tar.gz
19 libcanberra-gtk-module.sh)
20 md5sums=('23de3d11abd4920c6c9560e3a566e04d'
21 'a54799e624aac814b9343ab05f25c38b')
24 cd "${srcdir}/${_realname}-${pkgver}"
25 ./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var --disable-static --enable-oss --disable-alsa --with-builtin=dso || return 1
27 make -j1 DESTDIR="${pkgdir}" install || return 1
28 rm -f ${pkgdir}/usr/lib/*.la
29 rm -f ${pkgdir}/usr/lib/gtk-2.0/modules/*.la
31 install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
32 gconf-merge-schema ${pkgdir}/usr/share/gconf/schemas/libcanberra.schemas \
33 ${pkgdir}/etc/gconf/schemas/*.schemas
36 install -m755 -d "${pkgdir}/etc/X11/xinit/xinitrc.d"
37 install -m755 "${srcdir}/libcanberra-gtk-module.sh" "${pkgdir}/etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module" || return 1