# Maintainer: Vincent Grande # Contributor: Rafał Kozdrój # Contributor: Jan Alexander Steffens (heftig) # Contributor: Allan McRae # Contributor: Jason Chu pkgname=(openal-minimal-git) pkgver=1.18.1.r84.g5ec11a01 pkgrel=1 pkgdesc="Cross-platform 3D audio library, software implementation" arch=(i686 x86_64) url="https://github.com/kcat/openal-soft" license=(LGPL) depends=(glibc) makedepends=(alsa-lib libpulse sdl2 git cmake ninja) optdepends=('qt5-base: alsoft-config GUI Configurator') source=("git+https://github.com/kcat/openal-soft") md5sums=('SKIP') pkgver() { cd openal-soft git describe --long --tags | sed 's/^openal-soft-//;s/-/.r/;s/-/./g' } build() { cd openal-soft cmake ../openal-soft -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=lib ninja } package_openal-minimal-git() { optdepends=('qt5-base: alsoft-config GUI Configurator' 'fluidsynth: MIDI rendering') provides=("openal=$pkgver" openal) conflicts=("openal") DESTDIR="$pkgdir" ninja -C openal-soft install install -Dt "$pkgdir/usr/share/doc/openal" -m644 openal-soft/docs/* }