1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: Jason Chu <jchu@xentac.net>
12 pkgdesc="Cross-platform 3D audio library, software implementation"
13 url="https://github.com/kcat/openal-soft"
36 'qt5-base: alsoft-config GUI Configurator'
37 'fluidsynth: MIDI rendering'
38 'libmysofa: makemhr tool'
40 _commit=d3875f333fb6abe2f39d82caca329414871ae53b # tags/1.23.1
41 source=("git+https://github.com/kcat/openal-soft#commit=$_commit")
46 git describe --tags | sed 's/^openal-soft-//;s/[^-]*-g/r&/;s/-/+/g'
55 -DCMAKE_INSTALL_PREFIX=/usr
56 -DCMAKE_BUILD_TYPE=None
57 -DCMAKE_INSTALL_LIBDIR=lib
60 cmake -S openal-soft -B build -G Ninja "${cmake_options[@]}"
65 local p="$1" f d; shift
67 d="$srcdir/$p/${f#$pkgdir/}"
68 mkdir -p "$(dirname "$d")"
70 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
75 provides+=(libopenal.so)
77 DESTDIR="$pkgdir" cmake --install build
78 install -Dt "$pkgdir/usr/share/doc/openal" -m644 openal-soft/docs/*
81 _pick examples usr/bin/al{ffplay,hrtf,latency,loopback,multireverb}
82 _pick examples usr/bin/al{play,record,reverb,stream,tonegen}
85 package_openal-examples() {
86 pkgdesc+=" (example programs)"
87 depends=("openal=$pkgver-$pkgrel" sdl2 libsndfile ffmpeg)
89 mv examples/* "$pkgdir"
92 # vim:set sw=2 sts=-1 et: