# Maintainer: Jean Pierre Cimalando pkgname=smf-dsp-git _pkgname=smf-dsp pkgver=0.10.0.r21.ga0c9a5a pkgrel=1 epoch= pkgdesc="Advanced MIDI file player, including various chip music synths" arch=('x86_64') url="https://github.com/jpcima/smf-dsp" license=('Boost') groups=() depends=('sdl2' 'sdl2_image' 'libsoundio' 'jack' 'alsa-lib' 'libuv' 'glib2' 'hicolor-icon-theme') makedepends=('git' 'cmake') checkdepends=() optdepends=() provides=() conflicts=() replaces=() backup=() options=() install= changelog= source=("git+https://github.com/jpcima/smf-dsp.git" "git+https://github.com/Wohlstand/libADLMIDI.git" "git+https://github.com/Wohlstand/libOPNMIDI.git" "git+https://github.com/jpcima/scc.git" "git+https://github.com/munt/munt.git" "git+https://github.com/divideconcept/FluidLite.git" "git+https://github.com/jpcima/timidityplus.git" "git+https://github.com/martinmoene/span-lite.git" "git+https://github.com/martinmoene/scope-lite.git" "git+https://github.com/martinmoene/string-view-lite.git") noextract=() md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') validpgpkeys=() pkgver() { cd "$_pkgname" git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "$_pkgname" git submodule init git config submodule.thirdparty/libADLMIDI.url "$srcdir"/libADLMIDI git config submodule.thirdparty/libOPNMIDI.url "$srcdir"/libOPNMIDI git config submodule.thirdparty/scc.url "$srcdir"/scc git config submodule.thirdparty/munt.url "$srcdir"/munt git config submodule.thirdparty/FluidLite.url "$srcdir"/FluidLite git config submodule.thirdparty/timidityplus.url "$srcdir"/timidityplus git config submodule.thirdparty/span-lite.url "$srcdir"/span-lite git config submodule.thirdparty/scope-lite.url "$srcdir"/scope-lite git config submodule.thirdparty/string-view-lite.url "$srcdir"/string-view-lite git submodule update } build() { cd "$_pkgname" mkdir -p build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .. cd .. make -C build } package() { cd "$_pkgname" make DESTDIR="$pkgdir" -C build install install -D -m644 LICENSE.md "$pkgdir"/usr/share/licenses/"$_pkgname"/LICENSE.md }