extra/openal to 1.21.1-2

This commit is contained in:
David Beauchamp 2021-11-15 16:22:16 -05:00
parent 2a0fdf8952
commit 3d7ff06518

View file

@ -8,14 +8,14 @@
pkgbase=openal pkgbase=openal
pkgname=(openal openal-examples) pkgname=(openal openal-examples)
pkgver=1.21.1 pkgver=1.21.1
pkgrel=1 pkgrel=2
pkgdesc="Cross-platform 3D audio library, software implementation" pkgdesc="Cross-platform 3D audio library, software implementation"
arch=(x86_64) arch=(x86_64)
url="https://github.com/kcat/openal-soft" url="https://github.com/kcat/openal-soft"
license=(LGPL) license=(LGPL)
depends=(gcc-libs) depends=(gcc-libs)
makedepends=(alsa-lib libpulse fluidsynth portaudio jack qt5-base sdl2 makedepends=(alsa-lib libpulse fluidsynth portaudio jack qt5-base sdl2
libsndfile ffmpeg libmysofa git cmake) libsndfile ffmpeg libmysofa git cmake ninja)
optdepends=('qt5-base: alsoft-config GUI Configurator' optdepends=('qt5-base: alsoft-config GUI Configurator'
'fluidsynth: MIDI rendering' 'fluidsynth: MIDI rendering'
'libmysofa: makemhr tool') 'libmysofa: makemhr tool')
@ -30,10 +30,16 @@ pkgver() {
prepare() { prepare() {
cd openal-soft cd openal-soft
# Missing include
git cherry-pick -n 302e88dbf0f10224a5b87be4ce43b3fdd9d20184
# https://bugs.archlinux.org/task/72729
git cherry-pick -n b7ff1de48efda9ad54e6a3b4c1526722c371e832
} }
build() { build() {
cmake -S openal-soft -B build \ cmake -S openal-soft -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \
@ -52,6 +58,8 @@ _pick() {
} }
package_openal() { package_openal() {
provides+=(libopenal.so)
DESTDIR="$pkgdir" cmake --install build DESTDIR="$pkgdir" cmake --install build
install -Dt "$pkgdir/usr/share/doc/openal" -m644 openal-soft/docs/* install -Dt "$pkgdir/usr/share/doc/openal" -m644 openal-soft/docs/*