blob: 9852c385a3fd79f84757331aa01c76da145312fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Rafał Kozdrój <kozeid2@gmail.com>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Jason Chu <jchu@xentac.net>
pkgbase=openal-git
pkgname=(openal-git openal-examples-git)
pkgver=1.23.1.r242.g340a22be
pkgrel=1
pkgdesc="Cross-platform 3D audio library, software implementation"
arch=(i686 x86_64)
url="https://github.com/kcat/openal-soft"
license=(LGPL)
depends=(gcc-libs)
makedepends=(alsa-lib libpulse fluidsynth portaudio jack qt5-base sdl2
libsndfile ffmpeg libmysofa git cmake)
optdepends=('qt5-base: alsoft-config GUI Configurator'
'fluidsynth: MIDI rendering'
'libmysofa: makemhr tool')
source=("git+https://github.com/kcat/openal-soft.git")
md5sums=('SKIP')
pkgver() {
cd openal-soft
git describe --long --tags --exclude=makemhr | sed 's/^openal-soft-//;s/-/.r/;s/-/./g'
}
build() {
cmake -S openal-soft -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
package_openal-git() {
provides=("openal=$pkgver" libopenal.so)
conflicts=("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
}
package_openal-examples-git() {
pkgdesc+=" (example programs)"
depends=("openal-git=$pkgver-$pkgrel" sdl2 libsndfile ffmpeg)
provides=("openal-examples=$pkgver")
conflicts=("openal-examples")
mv examples/* "$pkgdir"
}
|