void-packages/srcpkgs/qtractor/template

58 lines
2.4 KiB
Bash

# Template file for 'qtractor'
pkgname=qtractor
version=1.3.0
revision=1
_clap_tag=1.2.2
_vst3sdk_tag=3.7.12_build_20
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 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/refs/tags/v${version}.tar.gz
https://github.com/free-audio/clap/archive/refs/tags/${_clap_tag}.tar.gz
https://github.com/steinbergmedia/vst3sdk/archive/refs/tags/v${_vst3sdk_tag}.tar.gz>vst3sdk-v${_vst3sdk_tag}.tar.gz
https://github.com/steinbergmedia/vst3_base/archive/refs/tags/v${_vst3sdk_tag}.tar.gz>vst3_base-v${_vst3sdk_tag}.tar.gz
https://github.com/steinbergmedia/vst3_pluginterfaces/archive/refs/tags/v${_vst3sdk_tag}.tar.gz>vst3_pluginterfaces-v${_vst3sdk_tag}.tar.gz
https://github.com/steinbergmedia/vst3_public_sdk/archive/refs/tags/v${_vst3sdk_tag}.tar.gz>vst3_public_sdk-v${_vst3sdk_tag}.tar.gz"
checksum="085a57f789bdb90ccbddce759f4ebd02104a51fe1d1e83634d619dedb7e79269
1472bfe3b9f4eac3d7aca57d4a528f0c39709a2af82900253ce6a5b86e0b60e1
1cafc2665f6e77c29303f7d11fd95af328f915bdd683a4e13058b8fca720d15f
1d863daf5a2aae7406b4a2cebdb5c42778d483358f81fa6fc9a5fecef3aa7ea3
0843f95c02a8f70658b6b1a2c96508a65b7be5093b0427e1d2074d1395fec381
542aa4574065f1baf99da0d57ecbbf58c6ddf595134553400f128ed95cba54db"
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
}