compat-32/apulse-32/Pkgfile

29 lines
788 B
Plaintext
Raw Normal View History

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 13:48:19 +02:00
# Depends on: alsa-lib-32 cmake glib-32
2014-10-06 23:38:14 +02:00
name=apulse-32
2020-05-13 12:02:25 +02:00
version=0.1.13
2014-10-06 23:38:14 +02:00
release=1
2020-05-13 12:02:25 +02: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 12:02:25 +02:00
sed -i -e '/^set(APULSEPATH /s|lib|&32|' ${name%-*}-$version/CMakeLists.txt
2014-10-06 23:38:14 +02:00
2020-05-13 12:02:25 +02:00
cmake -S${name%-*}-$version -Bbuild -GNinja \
2019-03-18 12:05:03 +01:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
2014-10-06 23:38:14 +02:00
2020-05-13 12:02:25 +02:00
cmake --build build
DESTDIR=$PKG cmake --build build --target install
2019-03-18 12:05:03 +01:00
2020-05-13 15:00:06 +02:00
install -d $PKG/etc/revdep.d
echo '/usr/lib32/apulse' > $PKG/etc/revdep.d/apulse-32
2019-03-18 12:05:03 +01: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
}