mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-04 00:17:17 +08:00
59 lines
1.8 KiB
Bash
59 lines
1.8 KiB
Bash
# maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
|
|
|
|
_pkgbasename=pulseaudio
|
|
pkgname=lib32-libpulse
|
|
pkgdesc="A featureful, general-purpose sound server. (32-bit client libraries)"
|
|
pkgver=5.0
|
|
pkgrel=1
|
|
arch=('x86_64')
|
|
url="http://pulseaudio.org/"
|
|
license=('GPL' 'LGPL')
|
|
depends=(lib32-{dbus-core,xcb-util,json-c,systemd}
|
|
lib32-lib{asyncns,cap,xtst,sm,sndfile,samplerate}
|
|
'webrtc-audio-processing' 'systemd'
|
|
"$_pkgbasename=${pkgver}")
|
|
makedepends=('pkgconfig' 'gcc-multilib' 'lib32-libtool' 'intltool'
|
|
'lib32-glib2' 'lib32-speex')
|
|
optdepends=('lib32-alsa-plugins: ALSA support')
|
|
provides=('lib32-pulseaudio')
|
|
conflicts=('lib32-pulseaudio')
|
|
replaces=('lib32-pulseaudio')
|
|
options=(!emptydirs !libtool)
|
|
source=("http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${pkgver}.tar.xz")
|
|
sha256sums=('99c13a8b1249ddbd724f195579df79484e9af6418cecf6a15f003a7f36caf939')
|
|
|
|
_libs="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la"
|
|
_pkglibs="libpulsecommon-${pkgver}.la libpulsedsp.la"
|
|
|
|
build() {
|
|
cd pulseaudio-$pkgver
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
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
|
|
|
|
# fight unused direct deps
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make -C src ${_libs} ${_pkglibs}
|
|
}
|
|
|
|
package() {
|
|
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
|
|
}
|