desktop/libcanberra/PKGBUILD

67 lines
2.4 KiB
Bash
Raw Normal View History

2011-01-10 03:00:06 +08:00
# Chakra Packages for Chakra, part of chakra-project.org
2013-12-18 02:41:12 +08:00
# Maintainerabveritas@chakra-project@org>
pkgbase=libcanberra
pkgname=('libcanberra' 'libcanberra-pulse' 'libcanberra-gstreamer')
2014-09-10 00:45:11 +08:00
pkgver=0.30
2015-01-25 16:12:00 +08:00
pkgrel=2
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')
2014-09-10 00:56:01 +08:00
depends=('libvorbis>=1.3.1' 'libltdl' 'alsa-lib' 'tdb' 'sound-theme-freedesktop' 'systemd')
2014-09-10 00:45:11 +08:00
makedepends=('pulseaudio' 'gstreamer' 'lynx')
2014-09-10 00:56:01 +08:00
options=(!emptydirs libtool)
url="http://0pointer.de/lennart/projects/libcanberra"
2014-09-10 00:45:11 +08:00
source=("http://pkgs.fedoraproject.org/repo/pkgs/${pkgbase}/${pkgbase}-${pkgver}.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/${pkgbase}-${pkgver}.tar.xz")
2014-09-10 00:56:01 +08:00
md5sums=('34cb7e4430afaf6f447c4ebdb9b42072')
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
2014-09-10 00:56:01 +08:00
# Fight unused direct deps
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
make
}
package_libcanberra() {
cd "${srcdir}/${pkgbase}-${pkgver}"
make -j1 DESTDIR="${pkgdir}" install
2014-09-10 00:56:01 +08:00
rm "$pkgdir"/usr/lib/*.la
rm -f "${pkgdir}/usr/lib/gtk-{2,3}.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"
2014-09-10 00:45:11 +08:00
depends=("$pkgbase=$pkgver-$pkgrel" 'gstreamer')
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
}