mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-15 03:49:04 +08:00
72 lines
1.9 KiB
Bash
72 lines
1.9 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=10.0
|
|
pkgrel=1
|
|
arch=(x86_64)
|
|
url="https://www.freedesktop.org/wiki/Software/PulseAudio/"
|
|
license=(LGPL)
|
|
depends=(lib32-libdbus lib32-systemd lib32-glib2
|
|
lib32-libasyncns lib32-libcap lib32-libxtst lib32-libsm lib32-libsndfile
|
|
lib32-libltdl
|
|
$_pkgbasename)
|
|
makedepends=(gcc libtool intltool lib32-glib2 lib32-speexdsp git)
|
|
optdepends=('lib32-alsa-plugins: ALSA support')
|
|
options=(!emptydirs)
|
|
_commit=84952e6a092b6a0c5b153bd7a4f6e490810681c8 # tags/v10.0^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-hal \
|
|
--disable-tcpwrap \
|
|
--disable-bluez4 \
|
|
--disable-samplerate \
|
|
--disable-rpath \
|
|
--disable-default-build-tests \
|
|
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
|
|
}
|