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
|
2011-09-28 18:02:05 +08:00
|
|
|
pkgname=('pulseaudio' 'libpulse')
|
|
|
|
pkgver=1.0
|
2011-10-08 09:41:11 +08:00
|
|
|
pkgrel=4
|
2011-09-29 02:16:36 +08:00
|
|
|
arch=('i686' 'x86_64')
|
2010-11-28 16:31:40 +08:00
|
|
|
url="http://pulseaudio.org/"
|
2011-09-28 18:02:05 +08:00
|
|
|
license=('GPL' 'LGPL')
|
|
|
|
makedepends=('libasyncns' 'libcap' 'attr' 'libxtst' 'libsm' 'tcp_wrappers' 'libsndfile'
|
|
|
|
'libtool' 'rtkit' 'speex' 'libsamplerate' 'tdb' 'udev' 'dbus-core' 'xcb-util'
|
2011-09-29 06:59:41 +08:00
|
|
|
'avahi' 'bluez' 'intltool' 'jack' 'lirc-utils' 'pkgconfig' 'openssl' 'json-c')
|
2010-11-28 16:31:40 +08:00
|
|
|
options=(!emptydirs !libtool !makeflags)
|
2011-09-28 18:02:05 +08:00
|
|
|
source=("http://freedesktop.org/software/${pkgbase}/releases/${pkgbase}-${pkgver}.tar.xz"
|
2011-10-03 04:15:18 +08:00
|
|
|
"${pkgbase}.xinit"
|
|
|
|
version-number.patch)
|
2011-09-28 18:02:05 +08:00
|
|
|
md5sums=('538e0b55ab9ba2987a88047ae332f5f4'
|
2011-10-03 04:15:18 +08:00
|
|
|
'eb1cfae28eb2e4d3fdbe45a90e4318ab'
|
|
|
|
'2c15058a61d6952353c1555ff90bb279')
|
2011-09-28 18:02:05 +08:00
|
|
|
sha1sums=('24a408e762b2df4334e9ae4f644ac1b893c7ef86'
|
2011-10-03 04:15:18 +08:00
|
|
|
'e33cce91a688104ccf718953711cb85b83e74a8f'
|
|
|
|
'7a8e7d07837ecfc448cebca9a13d60b0e83fd9d5')
|
2010-08-12 01:18:31 +08:00
|
|
|
|
|
|
|
build() {
|
2011-09-28 18:02:05 +08:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
2010-08-12 01:18:31 +08:00
|
|
|
|
2011-10-03 04:15:18 +08:00
|
|
|
patch -Np1 -i "$srcdir/version-number.patch"
|
|
|
|
|
2010-11-28 16:31:40 +08:00
|
|
|
# Don't break circular dependency between libpulse and libpulsecommon
|
2010-08-12 01:18:31 +08:00
|
|
|
LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
|
2010-11-28 16:31:40 +08:00
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-database=tdb \
|
|
|
|
--disable-hal \
|
|
|
|
--disable-rpath \
|
2011-05-08 11:00:05 +08:00
|
|
|
--disable-gconf \
|
2010-11-28 16:31:40 +08:00
|
|
|
--disable-default-build-tests
|
|
|
|
|
2010-08-12 01:18:31 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2010-09-04 05:37:49 +08:00
|
|
|
package_pulseaudio() {
|
2011-09-28 18:02:05 +08:00
|
|
|
pkgdesc="A featureful, general-purpose sound server."
|
2011-10-08 09:41:11 +08:00
|
|
|
depends=("libpulse=${pkgver}-${pkgrel}" 'rtkit' 'libtool' 'speex' 'tdb'
|
|
|
|
'udev' 'fftw' 'orc')
|
2010-11-28 16:31:40 +08:00
|
|
|
optdepends=('avahi: zeroconf support'
|
|
|
|
'bluez: bluetooth support'
|
2011-05-08 11:00:05 +08:00
|
|
|
# 'gconf: configuration through gconf'
|
2010-11-28 16:31:40 +08:00
|
|
|
'jack: jack support'
|
|
|
|
'lirc-utils: infra-red support'
|
|
|
|
'openssl: RAOP support')
|
2010-09-04 05:37:49 +08:00
|
|
|
backup=(etc/pulse/{daemon.conf,default.pa,system.pa})
|
2010-11-28 16:31:40 +08:00
|
|
|
install=pulseaudio.install
|
2011-09-28 18:02:05 +08:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2010-11-28 16:31:40 +08:00
|
|
|
|
|
|
|
# Lower resample quality
|
|
|
|
sed -e '/resample-method/iresample-method=speex-float-0' \
|
2011-09-28 18:02:05 +08:00
|
|
|
-i "${pkgdir}/etc/pulse/daemon.conf"
|
2010-11-28 16:31:40 +08:00
|
|
|
|
|
|
|
sed -e 's|/usr/bin/pactl load-module module-x11-cork-request|#&|' \
|
2011-09-28 18:02:05 +08:00
|
|
|
-i "${pkgdir}/usr/bin/start-${pkgbase}-x11"
|
2010-11-28 16:31:40 +08:00
|
|
|
|
2011-09-28 18:02:05 +08:00
|
|
|
install -Dm755 "${srcdir}/${pkgbase}.xinit" "${pkgdir}/etc/X11/xinit/xinitrc.d/${pkgbase}"
|
2010-11-28 16:31:40 +08:00
|
|
|
|
2011-09-28 18:02:05 +08:00
|
|
|
rm "${pkgdir}/etc/dbus-1/system.d/${pkgbase}-system.conf"
|
2010-11-28 16:31:40 +08:00
|
|
|
|
|
|
|
### Split libpulse
|
2010-08-12 01:18:31 +08:00
|
|
|
|
2011-09-28 18:02:05 +08:00
|
|
|
mkdir -p "${srcdir}"/libpulse/{etc/pulse,usr/{lib,share/{man/man5,vala/vapi}}}
|
2010-09-04 05:37:49 +08:00
|
|
|
|
2011-09-28 18:02:05 +08:00
|
|
|
mv {"${pkgdir}","${srcdir}/libpulse"}/etc/pulse/client.conf
|
2010-08-12 01:18:31 +08:00
|
|
|
|
2011-09-28 18:02:05 +08:00
|
|
|
mv "${pkgdir}"/usr/lib/libpulse{,dsp,-simple,-mainloop-glib}.so* \
|
|
|
|
"${pkgdir}"/usr/lib/libpulsecommon-*.so \
|
|
|
|
"${srcdir}/libpulse/usr/lib"
|
2010-09-04 05:37:49 +08:00
|
|
|
|
2011-09-28 18:02:05 +08:00
|
|
|
mv {"${pkgdir}","${srcdir}/libpulse"}/usr/lib/pkgconfig
|
|
|
|
mv {"${pkgdir}","${srcdir}/libpulse"}/usr/include
|
2010-09-04 05:37:49 +08:00
|
|
|
|
2011-09-28 18:02:05 +08:00
|
|
|
mv {"${pkgdir}","${srcdir}/libpulse"}/usr/share/man/man5/pulse-client.conf.5
|
|
|
|
mv {"${pkgdir}","${srcdir}/libpulse"}/usr/share/vala/vapi/libpulse.vapi
|
2010-09-04 05:37:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_libpulse() {
|
2011-09-29 02:16:36 +08:00
|
|
|
pkgdesc="A featureful, general-purpose sound server (client library)."
|
2011-10-08 09:41:11 +08:00
|
|
|
depends=('tcp_wrappers' 'dbus-core' 'xcb-util' 'libasyncns' 'libcap' 'libxtst' 'libsm' 'libsndfile' 'libsamplerate' 'json-c')
|
2010-11-28 16:31:40 +08:00
|
|
|
optdepends=('alsa-plugins: ALSA support'
|
|
|
|
'avahi: zeroconf support')
|
|
|
|
backup=(etc/pulse/client.conf)
|
2011-09-28 18:02:05 +08:00
|
|
|
mv "${srcdir}"/libpulse/* "${pkgdir}"
|
2010-08-12 01:18:31 +08:00
|
|
|
}
|
2011-09-28 18:02:05 +08:00
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|