2014-10-06 23:38:14 +02:00
|
|
|
# Description: PulseAudio emulation for ALSA.
|
|
|
|
# URL: https://github.com/i-rinat/apulse
|
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2019-08-27 21:48:19 +10:00
|
|
|
# Depends on: alsa-lib-32 cmake glib-32
|
2014-10-06 23:38:14 +02:00
|
|
|
|
|
|
|
name=apulse-32
|
2020-05-13 20:02:25 +10:00
|
|
|
version=0.1.13
|
2014-10-06 23:38:14 +02:00
|
|
|
release=1
|
2020-05-13 20:02:25 +10:00
|
|
|
source=(https://github.com/i-rinat/apulse/archive/v$version/${name%-*}-v$version.tar.gz)
|
2014-10-06 23:38:14 +02:00
|
|
|
|
|
|
|
build() {
|
2020-05-13 20:02:25 +10:00
|
|
|
sed -i -e '/^set(APULSEPATH /s|lib|&32|' ${name%-*}-$version/CMakeLists.txt
|
2014-10-06 23:38:14 +02:00
|
|
|
|
2020-05-13 20:02:25 +10:00
|
|
|
cmake -S${name%-*}-$version -Bbuild -GNinja \
|
2019-03-18 22:05:03 +11:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
2014-10-06 23:38:14 +02:00
|
|
|
|
2020-05-13 20:02:25 +10:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --build build --target install
|
2019-03-18 22:05:03 +11:00
|
|
|
|
2020-05-13 23:00:06 +10:00
|
|
|
install -d $PKG/etc/revdep.d
|
|
|
|
echo '/usr/lib32/apulse' > $PKG/etc/revdep.d/apulse-32
|
|
|
|
|
2019-03-18 22:05:03 +11:00
|
|
|
mv $PKG/usr/bin/apulse $PKG/usr/bin/apulse-32
|
|
|
|
|
|
|
|
rm -r $PKG/usr/share/man
|
|
|
|
rmdir $PKG/usr/share
|
2014-10-06 23:38:14 +02:00
|
|
|
}
|