[arch-commits] Commit in openal/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Wed Feb 24 10:51:54 UTC 2021
Date: Wednesday, February 24, 2021 @ 10:51:53
Author: heftig
Revision: 408722
1.21.1-1
Modified:
openal/trunk/PKGBUILD
----------+
PKGBUILD | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-24 10:51:15 UTC (rev 408721)
+++ PKGBUILD 2021-02-24 10:51:53 UTC (rev 408722)
@@ -4,7 +4,7 @@
pkgbase=openal
pkgname=(openal openal-examples)
-pkgver=1.21.0
+pkgver=1.21.1
pkgrel=1
pkgdesc="Cross-platform 3D audio library, software implementation"
arch=(x86_64)
@@ -16,7 +16,7 @@
optdepends=('qt5-base: alsoft-config GUI Configurator'
'fluidsynth: MIDI rendering'
'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")
sha512sums=('SKIP')
@@ -37,18 +37,23 @@
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() {
DESTDIR="$pkgdir" cmake --install build
install -Dt "$pkgdir/usr/share/doc/openal" -m644 openal-soft/docs/*
-### Split openal-examples
- mkdir -p examples/usr/bin
- for f in \
- alffplay alhrtf allatency alloopback almultireverb alplay alrecord \
- alreverb alstream altonegen
- do
- mv -v "$pkgdir/usr/bin/$f" examples/usr/bin/$f
- done
+ cd "$pkgdir"
+ _pick examples usr/bin/al{ffplay,hrtf,latency,loopback,multireverb}
+ _pick examples usr/bin/al{play,record,reverb,stream,tonegen}
}
package_openal-examples() {
@@ -55,6 +60,5 @@
pkgdesc+=" (example programs)"
depends=("openal=$pkgver-$pkgrel" sdl2 libsndfile ffmpeg)
optdepends=()
-
mv examples/* "$pkgdir"
}
More information about the arch-commits
mailing list