void-packages/srcpkgs/hydrogen/template
2021-04-25 17:28:00 +00:00

31 lines
960 B
Bash

# Template file for 'hydrogen'
pkgname=hydrogen
version=1.0.2
revision=1
build_style=cmake
# Our flags has -g already, DEBUG=ON will add -O0
configure_args="-DWANT_DEBUG=OFF"
hostmakedepends="pkg-config qt5-host-tools qt5-devel qt5-tools"
makedepends="libsndfile-devel libarchive-devel liblrdf-devel
pulseaudio-devel jack-devel qt5-devel qt5-xmlpatterns-devel
qt5-tools-devel ladspa-sdk liblo-devel libcppunit-devel"
depends="desktop-file-utils"
short_desc="Advanced drum machine"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.hydrogen-music.org/"
distfiles="https://github.com/hydrogen-music/hydrogen/archive/${version}.tar.gz"
checksum=de1ce64da8ae7a84d7fbd789e84010d6a837378bc9811acb282c30b9ee8042f5
post_patch() {
vsed -i '/INSTALL/s,"data,"/usr/share/hydrogen/data,' \
data/i18n/CMakeLists.txt
}
do_check() {
H2_HOME=$wrksrc ./build/src/tests/tests
}
post_install() {
rm -rf $DESTDIR/usr/include
}