void-packages/srcpkgs/qtractor/template

58 lines
2.4 KiB
Bash

# Template file for 'qtractor'
pkgname=qtractor
version=0.9.35
revision=1
_clap_tag=1.1.8
_vst3sdk_tag=3.7.8_build_34
create_wrksrc=yes
build_wrksrc="qtractor"
build_style=cmake
hostmakedepends="pkg-config qt6-base qt6-tools"
makedepends="aubio-devel dssi-devel jack-devel ladspa-sdk liblo-devel
libmad-devel libsamplerate-devel libsndfile-devel libvorbis-devel lilv-devel
qt6-base-devel qt6-svg-devel rubberband-devel sratom-devel"
depends="desktop-file-utils dssi hicolor-icon-theme jack lv2"
short_desc="Audio/MIDI multi-track sequencer application written in C++/Qt"
maintainer="Matthias von Faber <mvf@gmx.eu>"
# qtractor is GPL-2.0-or-later. VST3SDK is GPL-3.0-only, with some parts BSD-3-Clause.
license="GPL-3.0-only, BSD-3-Clause"
homepage="https://qtractor.org"
changelog="https://raw.githubusercontent.com/rncbc/qtractor/master/ChangeLog"
distfiles="https://github.com/rncbc/qtractor/archive/qtractor_${version//./_}.tar.gz
https://github.com/free-audio/clap/archive/refs/tags/$_clap_tag.tar.gz
https://github.com/steinbergmedia/vst3sdk/archive/v$_vst3sdk_tag.tar.gz>vst3sdk-v${_vst3sdk_tag}.tar.gz
https://github.com/steinbergmedia/vst3_base/archive/v$_vst3sdk_tag.tar.gz>vst3_base-v${_vst3sdk_tag}.tar.gz
https://github.com/steinbergmedia/vst3_pluginterfaces/archive/v$_vst3sdk_tag.tar.gz>vst3_pluginterfaces-v${_vst3sdk_tag}.tar.gz
https://github.com/steinbergmedia/vst3_public_sdk/archive/v$_vst3sdk_tag.tar.gz>vst3_public_sdk-v${_vst3sdk_tag}.tar.gz"
checksum="71ab5225eda54c02707be735e7cf3f0537a1ddc361b244ef90f222381a85028f
6f281ef55c4cf6129cf5b1746f373a4ba3e4078c1f406202d2e34ddeae86e37a
a27e6acc86f2761e554e2f2f8256b248345b145de02771e2f6c6fe6b24c187d8
bd4e24f143d739d5e9e69398ed07c9961eb561cefad69486eb3453fb31bca58b
7509e85caf02d6567384adb84ee7b05bdea5283f52cb232e504ac44091aeb42d
0392a24cc3665365d3a1f448e8f1c79d5375645acf88be73598cae673afcc1fc"
post_extract() {
cd $wrksrc
mv qtractor-* qtractor
mv vst3sdk-$_vst3sdk_tag vst3sdk
for src_dest in \
clap-$_clap_tag:$build_wrksrc/src/clap \
vst3_base-$_vst3sdk_tag:vst3sdk/base \
vst3_pluginterfaces-$_vst3sdk_tag:vst3sdk/pluginterfaces \
vst3_public_sdk-$_vst3sdk_tag:vst3sdk/public.sdk
do
_src=${src_dest%:*}
_dst=${src_dest#*:}
rmdir $_dst
mv $wrksrc/$_src $_dst
done
}
pre_configure() {
configure_args+="-DCONFIG_VST3SDK=$wrksrc/vst3sdk"
}
post_install() {
vlicense ../vst3sdk/base/LICENSE.txt VST3SDK-LICENSE.txt
}