2011-01-10 03:00:06 +08:00
|
|
|
#
|
|
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
2010-12-18 19:36:28 +08:00
|
|
|
|
|
|
|
pkgbase=libcanberra
|
2011-01-10 03:00:06 +08:00
|
|
|
pkgname=(libcanberra libcanberra-pulse libcanberra-gstreamer)
|
2010-12-18 19:36:28 +08:00
|
|
|
pkgver=0.26
|
2011-01-10 03:00:06 +08:00
|
|
|
pkgrel=2
|
2010-12-18 19:36:28 +08:00
|
|
|
pkgdesc="A small and lightweight implementation of the XDG Sound Theme Specification without gtk support"
|
|
|
|
arch=(i686 x86_64)
|
|
|
|
license=('LGPL')
|
2011-01-10 03:00:06 +08:00
|
|
|
depends=('libvorbis>=1.3.1' 'libtool' 'alsa-lib>=1.0.23' 'tdb>=1.2.1')
|
|
|
|
makedepends=('libpulse' 'gstreamer0.10>=0.10.30')
|
2010-12-18 19:36:28 +08:00
|
|
|
options=(!emptydirs)
|
|
|
|
url=http://0pointer.de/lennart/projects/libcanberra
|
|
|
|
source=(http://0pointer.de/lennart/projects/${pkgbase}/${pkgbase}-${pkgver}.tar.gz)
|
|
|
|
md5sums=('ee2c66ada7c851a4e7b6eb1682285a24')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var \
|
|
|
|
--disable-static --with-builtin=dso --enable-null --disable-oss \
|
|
|
|
--enable-alsa --enable-gstreamer --enable-pulse --disable-gtk
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_libcanberra() {
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
install -m755 -d "${pkgdir}/etc/X11/xinit/xinitrc.d"
|
|
|
|
|
|
|
|
# Split libcanberra-pulse
|
2011-01-10 03:03:04 +08:00
|
|
|
mkdir -p pulse-plugin
|
2010-12-18 19:36:28 +08:00
|
|
|
mv "${pkgdir}"/usr/lib/${pkgbase}-${pkgver}/${pkgbase}-pulse.* pulse-plugin
|
2011-01-10 03:00:06 +08:00
|
|
|
|
|
|
|
# Split libcanberra-gstreamer
|
2011-01-10 03:03:04 +08:00
|
|
|
mkdir -p gstreamer-plugin
|
2011-01-10 03:00:06 +08:00
|
|
|
mv "${pkgdir}"/usr/lib/${pkgbase}-${pkgver}/${pkgbase}-gstreamer.* gstreamer-plugin
|
2010-12-18 19:36:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_libcanberra-pulse() {
|
|
|
|
pkgdesc="PulseAudio plugin for libcanberra"
|
|
|
|
depends=("$pkgbase=$pkgver-$pkgrel" 'libpulse')
|
2011-01-10 03:01:36 +08:00
|
|
|
groups=('pulseaudio')
|
2010-12-18 19:36:28 +08:00
|
|
|
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}/usr/lib/${pkgbase}-${pkgver}"
|
|
|
|
mv pulse-plugin/* "${pkgdir}/usr/lib/${pkgbase}-${pkgver}"
|
|
|
|
}
|
|
|
|
|
2011-01-10 03:00:06 +08:00
|
|
|
package_libcanberra-gstreamer() {
|
|
|
|
pkgdesc="GStreamer plugin for libcanberra"
|
|
|
|
depends=("$pkgbase=$pkgver-$pkgrel" 'gstreamer0.10>=0.10.30')
|
|
|
|
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}/usr/lib/${pkgbase}-${pkgver}"
|
|
|
|
mv gstreamer-plugin/* "${pkgdir}/usr/lib/${pkgbase}-${pkgver}"
|
|
|
|
}
|