void-packages/srcpkgs/qtractor/template

58 lines
2.4 KiB
Bash

# Template file for 'qtractor'
pkgname=qtractor
version=0.9.29
revision=1
_clap_tag=1.1.1
_vst3sdk_tag=3.7.6_build_18
create_wrksrc=yes
build_wrksrc="qtractor"
build_style=cmake
hostmakedepends="pkg-config qt6-base-devel qt6-tools-devel"
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="107aafa1d2353354038b74d0246e0b80f722779b56b753023958b27a843be055
eef67a38df6c20fd4cb79698772d35d30aefc2e1a8d5275a5169f58cd530333e
3432b5ec94a5c87122ae30981e3df1863d1074daa83e493483af3fd33767ab6f
124b70a3ac33d5a8346fee171e7d21a8a8f84280afc47ed9c4738ed4a2c44cd4
eba627bbbc5e862e73fb90ddc5503b6a98874074d12f68623924078506a7fdbe
3ac4756ad6993fc9e1a4967cdf132207d98e7132277e37e0de2a199b66b283aa"
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
}