void-packages/srcpkgs/giada/template

33 lines
1.0 KiB
Bash

# Template file for 'giada'
pkgname=giada
version=0.17.0
revision=2
build_style=cmake
# configure_args="--target=linux"
hostmakedepends="cmake"
makedepends="fltk-devel jack-devel libsamplerate-devel
libsndfile-devel libXpm-devel pulseaudio-devel rtmidi-devel libXcursor-devel
json-c++"
short_desc="Loop machine, audio tool for DJs, live performers and musicians"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-only"
homepage="https://www.giadamusic.com/"
changelog="https://github.com/monocasual/giada/raw/master/ChangeLog"
distfiles="https://github.com/monocasual/giada/archive/v${version}.tar.gz"
checksum=b879f5ba7e9f34d7422aedd89d1d0baa91387b3528e057b4df25e1f2f8d661ef
post_extract() {
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
vsed -e '/list(APPEND LIBRARIES)/a list(APPEND LIBRARIES atomic)' -i CMakeLists.txt
fi
vsed -e 's;deps/json/single_include/\(nlohmann/json.hpp\);\1;' -i \
src/core/init.cpp \
src/core/midiMapConf.cpp \
src/core/conf.cpp \
src/core/patch.cpp
}
do_install() {
vbin build/giada
}