lib32/lib32-pulseaudio/PKGBUILD
2012-12-18 20:01:31 +00:00

59 lines
1.8 KiB
Bash

# Lib32 Packages for Chakra, part of chakra-project.org
_pkgbasename=pulseaudio
pkgname="lib32-${_pkgbasename}"
pkgdesc="A featureful, general-purpose sound server. (32-bit client libraries)"
pkgver=3.0
pkgrel=1
arch=('x86_64')
url="http://pulseaudio.org/"
license=('GPL' 'LGPL')
depends=(lib32-{dbus-core,xcb-util,json-c}
lib32-lib{asyncns,cap,xtst,sm,sndfile,samplerate}
'webrtc-audio-processing' 'systemd>=189'
"pulseaudio=${pkgver}")
makedepends=('pkgconfig' 'gcc-multilib' 'lib32-libtool' 'intltool'
'lib32-glib2' 'lib32-speex')
optdepends=('lib32-alsa-plugins: ALSA support')
provides=("lib32-libpulse=${pkgver}")
conflicts=('lib32-libpulse')
replaces=('lib32-libpulse')
options=(!emptydirs !libtool)
source=("http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${pkgver}.tar.xz")
sha256sums=('c90bfda29605942d08e3e218ef10e3c660506a06651a616bfbb6a6df8392836d')
_libs="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la"
_pkglibs="libpulsecommon-$pkgver.la libpulsedsp.la"
build() {
cd "$srcdir/pulseaudio-$pkgver"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
./configure --prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib32 \
--libexecdir=/usr/lib32 \
--localstatedir=/var \
--disable-hal \
--disable-tcpwrap \
--disable-rpath \
--disable-default-build-tests
# fight unused direct deps
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make -C src ${_libs} ${_pkglibs}
}
package() {
cd "${srcdir}/pulseaudio-${pkgver}"
make -j1 -C src DESTDIR="${pkgdir}" \
lib_LTLIBRARIES="${_libs}" pkglib_LTLIBRARIES="${_pkglibs}" \
install-libLTLIBRARIES install-pkglibLTLIBRARIES
make -j1 DESTDIR="${pkgdir}" install-pkgconfigDATA
}