lib32/lib32-libpulse/PKGBUILD

72 lines
1.9 KiB
Bash
Raw 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)"
2017-05-26 22:44:33 +08:00
pkgver=10.0
2014-04-12 05:35:09 +08:00
pkgrel=1
2016-01-02 12:22:51 +08:00
arch=(x86_64)
2017-05-26 22:44:33 +08:00
url="https://www.freedesktop.org/wiki/Software/PulseAudio/"
2016-01-02 12:22:51 +08:00
license=(LGPL)
2017-05-26 22:44:33 +08:00
depends=(lib32-libdbus lib32-systemd lib32-glib2
2016-01-02 12:22:51 +08:00
lib32-libasyncns lib32-libcap lib32-libxtst lib32-libsm lib32-libsndfile
2017-05-26 22:44:33 +08:00
lib32-libltdl
2016-01-02 12:22:51 +08:00
$_pkgbasename)
2017-05-26 22:44:33 +08:00
makedepends=(gcc libtool intltool lib32-glib2 lib32-speexdsp git)
2011-01-16 01:54:28 +08:00
optdepends=('lib32-alsa-plugins: ALSA support')
2017-05-26 22:44:33 +08:00
options=(!emptydirs)
_commit=84952e6a092b6a0c5b153bd7a4f6e490810681c8 # tags/v10.0^0
source=("git+https://anongit.freedesktop.org/git/pulseaudio/pulseaudio#commit=$_commit")
sha256sums=('SKIP')
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"
2017-05-26 22:44:33 +08:00
pkgver() {
cd pulseaudio
git describe --tags | sed 's/^v//;s/-/+/g'
}
2016-01-02 12:22:51 +08:00
prepare() {
2017-05-26 22:44:33 +08:00
cd pulseaudio
NOCONFIGURE=1 ./bootstrap.sh
2016-01-02 12:22:51 +08:00
}
2011-01-16 01:54:28 +08:00
build() {
2017-05-26 22:44:33 +08:00
cd pulseaudio
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 \
--libdir=/usr/lib32 \
2017-05-26 22:44:33 +08:00
--sysconfdir=/etc \
--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() {
2017-05-26 22:44:33 +08:00
cd pulseaudio
2014-04-12 05:35:09 +08:00
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
}