desktop/libcanberra/PKGBUILD

66 lines
2.1 KiB
Bash
Raw Normal View History

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>
pkgbase=libcanberra
pkgname=('libcanberra' 'libcanberra-pulse' 'libcanberra-gstreamer')
2011-05-08 18:34:18 +08:00
pkgver=0.28
pkgrel=5
2011-05-08 18:34:18 +08:00
pkgdesc="A small and lightweight implementation of the XDG Sound Theme Specification"
arch=('x86_64')
license=('LGPL')
depends=('libvorbis>=1.3.1' 'libtool' 'alsa-lib' 'tdb' 'sound-theme-freedesktop')
makedepends=('pulseaudio' 'gstreamer0.10')
options=(!emptydirs)
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')
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 \
--with-systemdsystemunitdir=/usr/lib/systemd/system
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
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
}
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"
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
}