2013-12-18 02:36:04 +08:00
|
|
|
|
2011-01-10 03:00:06 +08:00
|
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
2013-12-18 02:36:04 +08:00
|
|
|
|
2013-12-18 02:41:12 +08:00
|
|
|
# Maintainerabveritas@chakra-project@org>
|
2010-12-18 19:36:28 +08:00
|
|
|
|
|
|
|
pkgbase=libcanberra
|
2012-11-03 02:07:33 +08:00
|
|
|
pkgname=('libcanberra' 'libcanberra-pulse' 'libcanberra-gstreamer')
|
2011-05-08 18:34:18 +08:00
|
|
|
pkgver=0.28
|
2012-11-03 02:07:33 +08:00
|
|
|
pkgrel=5
|
2011-05-08 18:34:18 +08:00
|
|
|
pkgdesc="A small and lightweight implementation of the XDG Sound Theme Specification"
|
2012-11-03 02:07:33 +08:00
|
|
|
arch=('x86_64')
|
2010-12-18 19:36:28 +08:00
|
|
|
license=('LGPL')
|
2011-11-10 10:15:31 +08:00
|
|
|
depends=('libvorbis>=1.3.1' 'libtool' 'alsa-lib' 'tdb' 'sound-theme-freedesktop')
|
2012-11-03 02:07:33 +08:00
|
|
|
makedepends=('pulseaudio' 'gstreamer0.10')
|
2010-12-18 19:36:28 +08:00
|
|
|
options=(!emptydirs)
|
2012-11-03 02:07:33 +08:00
|
|
|
url="http://0pointer.de/lennart/projects/libcanberra"
|
|
|
|
source=("http://0pointer.de/lennart/projects/${pkgbase}/${pkgbase}-${pkgver}.tar.gz")
|
2011-05-08 18:34:18 +08:00
|
|
|
md5sums=('c198b4811598c4c161ff505e4531b02c')
|
2010-12-18 19:36:28 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var \
|
|
|
|
--disable-static --with-builtin=dso --enable-null --disable-oss \
|
2012-11-03 02:07:33 +08:00
|
|
|
--enable-alsa --enable-gstreamer --enable-pulse --disable-gtk \
|
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
2010-12-18 19:36:28 +08:00
|
|
|
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')
|
|
|
|
|
|
|
|
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"
|
2011-11-10 10:15:31 +08:00
|
|
|
depends=("$pkgbase=$pkgver-$pkgrel" 'gstreamer0.10')
|
2011-01-10 03:00:06 +08:00
|
|
|
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}/usr/lib/${pkgbase}-${pkgver}"
|
|
|
|
mv gstreamer-plugin/* "${pkgdir}/usr/lib/${pkgbase}-${pkgver}"
|
2011-05-08 18:34:18 +08:00
|
|
|
}
|