summaryrefslogtreecommitdiff
path: root/nonsystemd-multilib
diff options
context:
space:
mode:
Diffstat (limited to 'nonsystemd-multilib')
-rw-r--r--nonsystemd-multilib/lib32-libpulse/PKGBUILD80
1 files changed, 80 insertions, 0 deletions
diff --git a/nonsystemd-multilib/lib32-libpulse/PKGBUILD b/nonsystemd-multilib/lib32-libpulse/PKGBUILD
new file mode 100644
index 000000000..1aa3d8646
--- /dev/null
+++ b/nonsystemd-multilib/lib32-libpulse/PKGBUILD
@@ -0,0 +1,80 @@
+# $Id$
+# Maintainer (Arch): Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Contributor (Arch): Daniel J Griffiths <ghost1227@archlinux.us>
+# Contributor (Arch): Corrado Primier <bardo@aur.archlinux.org>
+# Contributor (Arch): William Rea <sillywilly@gmail.com>
+# Maintainer: David P. <megver83@parabola.nu>
+
+_pkgbasename=libpulse
+pkgname=lib32-$_pkgbasename
+pkgdesc="A featureful, general-purpose sound server (32-bit client libraries)"
+pkgver=11.1
+pkgrel=1
+pkgrel+=.nonsystemd1
+arch=(x86_64)
+url="https://www.freedesktop.org/wiki/Software/PulseAudio/"
+license=(LGPL)
+depends=(lib32-dbus lib32-glib2 lib32-eudev
+ lib32-libasyncns lib32-libcap lib32-libxtst lib32-libsm lib32-libsndfile
+ $_pkgbasename)
+makedepends=(libtool intltool lib32-speexdsp lib32-gtk3 git lib32-libltdl)
+optdepends=('lib32-alsa-plugins: ALSA support')
+provides=("lib32-pulseaudio=$pkgver")
+conflicts=(lib32-pulseaudio)
+replaces=(lib32-pulseaudio)
+options=(!emptydirs)
+_commit=f93e372b0b2cb960df04de3f0a8fbea683bb8229 # tags/v11.1^0
+source=("git+https://anongit.freedesktop.org/git/pulseaudio/pulseaudio#commit=$_commit")
+sha256sums=('SKIP')
+
+_pulsever=$pkgver
+[[ $_pulsever = *.*.* ]] && _pulsever=${_pulsever%.*}
+
+_libs="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la"
+_pkglibs="libpulsecommon-${_pulsever}.la libpulsedsp.la"
+
+pkgver() {
+ cd pulseaudio
+ git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+ cd pulseaudio
+ NOCONFIGURE=1 ./bootstrap.sh
+}
+
+build() {
+ cd pulseaudio
+
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib32 \
+ --localstatedir=/var \
+ --disable-tcpwrap \
+ --disable-bluez4 \
+ --disable-samplerate \
+ --disable-rpath \
+ --disable-default-build-tests \
+ --with-systemduserunitdir=no \
+ --enable-systemd-login=no \
+ DATADIRNAME=share
+
+ # fight unused direct deps
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make -C src $_libs $_pkglibs
+}
+
+package() {
+ cd pulseaudio
+ 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
+}