mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
extra/openal to 1.21.1-1
This commit is contained in:
parent
3a7520613f
commit
f075dabefe
1 changed files with 15 additions and 11 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
pkgbase=openal
|
pkgbase=openal
|
||||||
pkgname=(openal openal-examples)
|
pkgname=(openal openal-examples)
|
||||||
pkgver=1.21.0
|
pkgver=1.21.1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Cross-platform 3D audio library, software implementation"
|
pkgdesc="Cross-platform 3D audio library, software implementation"
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
|
@ -19,7 +19,7 @@ makedepends=(alsa-lib libpulse fluidsynth portaudio jack qt5-base sdl2
|
||||||
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')
|
||||||
_commit=c0cbe602ce66481a822ba16856052a47154f5cc5 # tags/openal-soft-1.21.0
|
_commit=ae4eacf147e2c2340cc4e02a790df04c793ed0a9 # tags/1.21.1
|
||||||
source=("git+https://github.com/kcat/openal-soft#commit=$_commit")
|
source=("git+https://github.com/kcat/openal-soft#commit=$_commit")
|
||||||
sha512sums=('SKIP')
|
sha512sums=('SKIP')
|
||||||
|
|
||||||
|
@ -41,24 +41,28 @@ build() {
|
||||||
cmake --build build
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_pick() {
|
||||||
|
local p="$1" f d; shift
|
||||||
|
for f; do
|
||||||
|
d="$srcdir/$p/${f#$pkgdir/}"
|
||||||
|
mkdir -p "$(dirname "$d")"
|
||||||
|
mv "$f" "$d"
|
||||||
|
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
package_openal() {
|
package_openal() {
|
||||||
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/*
|
||||||
|
|
||||||
### Split openal-examples
|
cd "$pkgdir"
|
||||||
mkdir -p examples/usr/bin
|
_pick examples usr/bin/al{ffplay,hrtf,latency,loopback,multireverb}
|
||||||
for f in \
|
_pick examples usr/bin/al{play,record,reverb,stream,tonegen}
|
||||||
alffplay alhrtf allatency alloopback almultireverb alplay alrecord \
|
|
||||||
alreverb alstream altonegen
|
|
||||||
do
|
|
||||||
mv -v "$pkgdir/usr/bin/$f" examples/usr/bin/$f
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package_openal-examples() {
|
package_openal-examples() {
|
||||||
pkgdesc+=" (example programs)"
|
pkgdesc+=" (example programs)"
|
||||||
depends=("openal=$pkgver-$pkgrel" sdl2 libsndfile ffmpeg)
|
depends=("openal=$pkgver-$pkgrel" sdl2 libsndfile ffmpeg)
|
||||||
optdepends=()
|
optdepends=()
|
||||||
|
|
||||||
mv examples/* "$pkgdir"
|
mv examples/* "$pkgdir"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue