2010-08-12 01:18:31 +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>
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
2010-09-04 05:37:49 +08:00
|
|
|
pkgbase=pulseaudio
|
|
|
|
pkgname=('pulseaudio' 'libpulse')
|
2010-08-12 01:18:31 +08:00
|
|
|
pkgver=0.9.21
|
2010-09-04 05:37:49 +08:00
|
|
|
pkgrel=2
|
2010-08-12 01:18:31 +08:00
|
|
|
pkgdesc="A networked sound server"
|
|
|
|
arch=(i686 x86_64)
|
2010-09-04 05:37:49 +08:00
|
|
|
url=http://pulseaudio.org/
|
2010-08-12 01:18:31 +08:00
|
|
|
license=(GPL LGPL)
|
2010-09-04 05:37:49 +08:00
|
|
|
makedepends=('autoconf' 'avahi' 'bluez' 'doxygen' 'gconf' 'intltool' 'jack' 'lirc-utils' 'pkgconfig'
|
|
|
|
'udev' 'libsm' 'libsndfile' 'libasyncns' 'libcap' 'rtkit' 'attr' 'libxtst' 'speex'
|
|
|
|
'libsamplerate' 'tdb' 'libtool' 'tcp_wrappers')
|
2010-08-12 01:18:31 +08:00
|
|
|
options=(emptydirs !libtool !makeflags !strip)
|
2010-09-04 05:37:49 +08:00
|
|
|
source=("http://0pointer.de/lennart/projects/pulseaudio/${pkgbase}-${pkgver}.tar.gz"
|
|
|
|
'pulseaudio.conf' 'pulseaudio.rc')
|
|
|
|
md5sums=('76e623c4c72e2258bc8bdeb1599bad74'
|
|
|
|
'd4a7d4ad51b406588ba7ac7931c5dd88'
|
2010-08-12 01:18:31 +08:00
|
|
|
'c5aa09c1d3e2217dc3bb23138e2a5a1d')
|
|
|
|
|
|
|
|
build() {
|
2010-09-04 05:37:49 +08:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
2010-08-12 01:18:31 +08:00
|
|
|
|
|
|
|
# Fix linking dependency cycle between libpulse and libpulsecommon
|
|
|
|
LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
|
|
|
|
LDFLAGS="${LDFLAGS//,--as-needed}"
|
|
|
|
LDFLAGS="${LDFLAGS//--as-needed}"
|
|
|
|
|
|
|
|
# Fix strict aliasing warnings
|
|
|
|
CFLAGS+=" -fno-strict-aliasing"
|
|
|
|
|
2010-09-04 05:37:49 +08:00
|
|
|
./configure --disable-hal \
|
|
|
|
--disable-rpath \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-database=tdb
|
2010-08-12 01:18:31 +08:00
|
|
|
make
|
|
|
|
make doxygen
|
|
|
|
}
|
|
|
|
|
2010-09-04 05:37:49 +08:00
|
|
|
package_pulseaudio() {
|
|
|
|
depends=("libpulse=${pkgver}-${pkgrel}" 'udev')
|
|
|
|
optdepends=('pulseaudio-alsa: ALSA support'
|
|
|
|
'avahi: zeroconf support'
|
|
|
|
'bluez: bluetooth support'
|
|
|
|
'gconf: configuration through gconf'
|
|
|
|
'jack: jack support'
|
|
|
|
'lirc-utils: infra-red support')
|
|
|
|
install=pulseaudio.install
|
|
|
|
backup=(etc/pulse/{daemon.conf,default.pa,system.pa})
|
2010-08-12 01:18:31 +08:00
|
|
|
|
2010-09-04 05:37:49 +08:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
install -Dm755 "${srcdir}/pulseaudio.rc" "${pkgdir}/etc/rc.d/pulseaudio"
|
|
|
|
install -Dm644 "${srcdir}/pulseaudio.conf" "${pkgdir}/etc/conf.d/pulseaudio"
|
|
|
|
install -dm755 "${pkgdir}/var/run/pulse"
|
2010-08-12 01:18:31 +08:00
|
|
|
|
|
|
|
# Ugly fix for pulseaudio system users
|
2010-09-04 05:37:49 +08:00
|
|
|
install -dm755 "${pkgdir}/var/pulse"
|
2010-08-12 01:18:31 +08:00
|
|
|
echo -e '\n### Automatically restore volumes\nload-module module-volume-restore table="/var/pulse/volume-restore.table"' \
|
2010-09-04 05:37:49 +08:00
|
|
|
>> "${pkgdir}/etc/pulse/system.pa"
|
|
|
|
|
|
|
|
# Remove libpulse
|
|
|
|
rm ${pkgdir}/etc/pulse/client.conf
|
|
|
|
rm -r ${pkgdir}/usr/include/
|
|
|
|
rm ${pkgdir}/usr/lib/libpulse*
|
|
|
|
rm -r ${pkgdir}/usr/lib/pkgconfig
|
|
|
|
rm -r ${pkgdir}/usr/share/locale/
|
|
|
|
rm -r ${pkgdir}/usr/share/vala/
|
|
|
|
rm ${pkgdir}/usr/share/man/man5/pulse-client.conf.5
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
package_libpulse() {
|
|
|
|
depends=('libsm' 'libsndfile' 'libasyncns' 'libcap' 'rtkit' 'attr' 'libxtst' 'speex'
|
|
|
|
'libsamplerate' 'tdb' 'libtool' 'tcp_wrappers')
|
|
|
|
backup='etc/pulse/client.conf'
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
# Remove everything but the libs
|
|
|
|
rm -r ${pkgdir}/etc/dbus-1/
|
|
|
|
rm ${pkgdir}/etc/pulse/daemon.conf
|
|
|
|
rm ${pkgdir}/etc/pulse/default.pa
|
|
|
|
rm ${pkgdir}/etc/pulse/system.pa
|
|
|
|
rm -r ${pkgdir}/etc/xdg/
|
|
|
|
rm -r ${pkgdir}/lib/
|
|
|
|
rm -r ${pkgdir}/usr/bin
|
|
|
|
rm -r ${pkgdir}/usr/lib/pulse
|
|
|
|
rm -r ${pkgdir}/usr/lib/pulse-$pkgver
|
|
|
|
rm -r ${pkgdir}/usr/share/man/man1
|
|
|
|
rm ${pkgdir}/usr/share/man/man5/default.pa.5
|
|
|
|
rm ${pkgdir}/usr/share/man/man5/pulse-daemon.conf.5
|
|
|
|
rm -r ${pkgdir}/usr/share/pulseaudio
|
2010-08-12 01:18:31 +08:00
|
|
|
}
|