lib32/lib32-libpulse/PKGBUILD

66 lines
2.1 KiB
Bash
Raw Normal View History

2011-01-16 01:54:28 +08:00
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
# contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>
2011-01-16 01:54:28 +08:00
_pkgbasename=libpulse
pkgname="lib32-${_pkgbasename}"
pkgdesc="A featureful, general-purpose sound server. (32-bit client libraries)"
2012-09-10 06:02:27 +08:00
pkgver=2.1
2011-01-16 01:54:28 +08:00
pkgrel=1
arch=('x86_64')
2011-01-16 01:54:28 +08:00
url="http://pulseaudio.org/"
license=('GPL' 'LGPL')
depends=(lib32-{dbus-core,xcb-util,json-c}
lib32-lib{asyncns,cap,xtst,sm,sndfile,samplerate}
2012-09-10 06:02:27 +08:00
'webrtc-audio-processing' 'systemd>=189'
"${_pkgbasename}=${pkgver}")
makedepends=('pkgconfig' 'gcc-multilib' 'lib32-libtool' 'intltool'
'lib32-glib2' 'lib32-speex')
2011-01-16 01:54:28 +08:00
optdepends=('lib32-alsa-plugins: ALSA support')
provides=("lib32-pulseaudio=${pkgver}")
conflicts=('lib32-pulseaudio')
replaces=('lib32-pulseaudio')
options=(!emptydirs !libtool)
source=("http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${pkgver}.tar.xz")
2012-09-10 06:02:27 +08:00
sha256sums=('ef6b347bf47abfb98080795f1583018ac959b4aeb4df916b879f9e1eaba0ca7f')
2011-01-16 01:54:28 +08:00
_libs="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la"
_pkglibs="libpulsecommon-$pkgver.la libpulsedsp.la"
2011-01-16 01:54:28 +08:00
build() {
cd "$srcdir/pulseaudio-$pkgver"
2011-01-16 01:54:28 +08:00
export CC="gcc -m32"
export CXX="g++ -m32"
2011-01-16 01:54:28 +08:00
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
2011-01-16 01:54:28 +08:00
# fight unused direct deps
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2012-09-10 06:02:27 +08:00
make -C src ${_libs} ${_pkglibs}
2011-01-16 01:54:28 +08:00
}
package() {
2012-09-10 06:02:27 +08:00
cd "${srcdir}/pulseaudio-${pkgver}"
make -j1 -C src DESTDIR="${pkgdir}" \
lib_LTLIBRARIES="${_libs}" pkglib_LTLIBRARIES="${_pkglibs}" \
install-libLTLIBRARIES install-pkglibLTLIBRARIES
2012-09-10 06:02:27 +08:00
make -j1 DESTDIR="${pkgdir}" install-pkgconfigDATA
}