updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / libcanberra-oss / PKGBUILD
blobe93ed036e936cfafead4389096cdf0cce331eb05
1 # $Id: PKGBUILD 13455 2008-09-27 11:03:58Z jgc $
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
4 pkgname=libcanberra-oss
5 _realname=libcanberra
6 pkgver=0.25
7 pkgrel=1
8 pkgdesc="A small and lightweight implementation of the XDG Sound Theme Specification"
9 url=http://0pointer.de/lennart/projects/libcanberra
10 arch=(i686 x86_64)
11 license=('LGPL')
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
17 options=(!libtool)
18 source=(http://0pointer.de/lennart/projects/${_realname}/${_realname}-${pkgver}.tar.gz
19         libcanberra-gtk-module.sh)
20 md5sums=('23de3d11abd4920c6c9560e3a566e04d'
21          'a54799e624aac814b9343ab05f25c38b')
23 build() {
24   cd "${srcdir}/${_realname}-${pkgver}"
25   ./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var --disable-static --enable-oss --disable-alsa --with-builtin=dso || return 1
26   make || 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
30   
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
34                      
35   rm -r $pkgdir/etc
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