blob: 4dd353db4cfdbc134a3706bb5adc101fd36c96f0 (
plain)
1 # Description: PulseAudio emulation for ALSA.
2 # URL: https://github.com/i-rinat/apulse
3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: alsa-lib-32 cmake glib-32
5
6 name=apulse-32
7 version=0.1.13
8 release=1
9 source=(https://github.com/i-rinat/apulse/archive/v$version/${name%-*}-v$version.tar.gz)
10
11 build() {
12 sed -i -e '/^set(APULSEPATH /s|lib|&32|' ${name%-*}-$version/CMakeLists.txt
13
14 cmake -S${name%-*}-$version -Bbuild -GNinja \
15 -DCMAKE_INSTALL_PREFIX=/usr \
16 -DCMAKE_BUILD_TYPE=Release
17
18 cmake --build build
19 DESTDIR=$PKG cmake --build build --target install
20
21 install -d $PKG/etc/revdep.d
22 echo '/usr/lib32/apulse' > $PKG/etc/revdep.d/apulse-32
23
24 mv $PKG/usr/bin/apulse $PKG/usr/bin/apulse-32
25
26 rm -r $PKG/usr/share/man
27 rmdir $PKG/usr/share
28 }
|