lib32/lib32-libpulse/PKGBUILD

64 lines
1.8 KiB
Bash
Raw Permalink Normal View History

# maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
2011-01-16 01:54:28 +08:00
2012-12-19 04:01:31 +08:00
_pkgbasename=pulseaudio
pkgname=lib32-libpulse
pkgdesc="A featureful, general-purpose sound server. (32-bit client libraries)"
2016-01-23 02:37:36 +08:00
pkgver=8.0
2014-04-12 05:35:09 +08:00
pkgrel=1
2016-01-02 12:22:51 +08:00
arch=(x86_64)
url="http://www.freedesktop.org/wiki/Software/PulseAudio"
license=(LGPL)
depends=(lib32-libdbus lib32-json-c lib32-systemd
lib32-libasyncns lib32-libcap lib32-libxtst lib32-libsm lib32-libsndfile
$_pkgbasename)
makedepends=(gcc-multilib libtool-multilib intltool lib32-glib2 lib32-speexdsp git)
2011-01-16 01:54:28 +08:00
optdepends=('lib32-alsa-plugins: ALSA support')
options=(!emptydirs !libtool)
2016-01-02 12:22:51 +08:00
source=("http://freedesktop.org/software/pulseaudio/releases/pulseaudio-$pkgver.tar.xz")
2016-01-23 02:37:36 +08:00
sha256sums=('690eefe28633466cfd1ab9d85ebfa9376f6b622deec6bfee5091ac9737cd1989')
2016-01-02 12:22:51 +08:00
_pulsever=$pkgver
[[ $_pulsever = *.*.* ]] && _pulsever=${_pulsever%.*}
2011-01-16 01:54:28 +08:00
_libs="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la"
2016-01-02 12:22:51 +08:00
_pkglibs="libpulsecommon-${_pulsever}.la libpulsedsp.la"
prepare() {
cd pulseaudio-$pkgver
}
2011-01-16 01:54:28 +08:00
build() {
2014-04-12 05:35:09 +08:00
cd 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 \
2015-02-13 22:43:41 +08:00
--disable-bluez4 \
2016-01-02 12:22:51 +08:00
--disable-samplerate \
--disable-rpath \
--disable-default-build-tests \
DATADIRNAME=share
2011-01-16 01:54:28 +08:00
# fight unused direct deps
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2016-01-02 12:22:51 +08:00
make -C src $_libs $_pkglibs
2011-01-16 01:54:28 +08:00
}
package() {
2014-04-12 05:35:09 +08:00
cd pulseaudio-$pkgver
make -j1 -C src DESTDIR="$pkgdir" \
lib_LTLIBRARIES="$_libs" install-libLTLIBRARIES
make -j1 -C src DESTDIR="$pkgdir" \
pkglib_LTLIBRARIES="$_pkglibs" install-pkglibLTLIBRARIES
make -j1 DESTDIR="$pkgdir" install-pkgconfigDATA
2012-09-10 06:02:27 +08:00
}