mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-04 14:47:27 +08:00
60 lines
1.8 KiB
Bash
60 lines
1.8 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
|
|
_pkgbasename=pulseaudio
|
|
pkgname="lib32-${_pkgbasename}"
|
|
pkgdesc="A featureful, general-purpose sound server. (32-bit client libraries)"
|
|
pkgver=4.0
|
|
pkgrel=1
|
|
arch=('x86_64')
|
|
url="http://pulseaudio.org/"
|
|
license=('GPL' 'LGPL')
|
|
depends=(lib32-{dbus-core,xcb-util,json-c}
|
|
lib32-lib{asyncns,cap,xtst,sm,sndfile,samplerate}
|
|
'webrtc-audio-processing' 'systemd>=189'
|
|
"$_pkgbasename=${pkgver}")
|
|
makedepends=('pkgconfig' 'gcc-multilib' 'lib32-libtool' 'intltool'
|
|
'lib32-glib2' 'lib32-speex')
|
|
optdepends=('lib32-alsa-plugins: ALSA support')
|
|
provides=("lib32-libpulse=${pkgver}")
|
|
conflicts=('lib32-libpulse')
|
|
replaces=('lib32-libpulse')
|
|
options=(!emptydirs !libtool)
|
|
source=("http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${pkgver}.tar.xz")
|
|
sha256sums=('35ceb36bb1822fe54f0b5e4863b4f486769fdfb8ff2111f01fd8778928f9cdae')
|
|
|
|
_libs="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la"
|
|
#_pkglibs="libpulsecommon-${pkgver}.la libpulsedsp.la"
|
|
_pkglibs="libpulsecommon-4.0.la libpulsedsp.la"
|
|
|
|
|
|
build() {
|
|
cd "$srcdir/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 "${srcdir}/pulseaudio-${pkgver}"
|
|
make -C src DESTDIR="${pkgdir}" \
|
|
lib_LTLIBRARIES="${_libs}" pkglib_LTLIBRARIES="${_pkglibs}" \
|
|
install-libLTLIBRARIES install-pkglibLTLIBRARIES
|
|
make DESTDIR="${pkgdir}" install-pkgconfigDATA
|
|
}
|