From 565df6cae9467dfb711586b71e0fab94cede2e53 Mon Sep 17 00:00:00 2001 From: David P Date: Fri, 11 May 2018 14:22:38 -0300 Subject: nonsystemd-multilib/lib32-libpulse: add package Signed-off-by: David P --- nonsystemd-multilib/lib32-libpulse/PKGBUILD | 80 +++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 nonsystemd-multilib/lib32-libpulse/PKGBUILD (limited to 'nonsystemd-multilib/lib32-libpulse') 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) +# Contributor (Arch): Daniel J Griffiths +# Contributor (Arch): Corrado Primier +# Contributor (Arch): William Rea +# Maintainer: David P. + +_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 +} -- cgit v1.2.3