PKGBUILDs/extra/qtractor/PKGBUILD
2023-09-15 13:59:42 +00:00

102 lines
2.3 KiB
Bash

# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Ray Rashif <schiv@archlinux.org>
# Contributor: speps <speps at aur dot archlinux dot org>
# Contributor: Philipp Überbacher <hollunder at gmx dot at>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - set -DCONFIG_SSE=OFF
pkgname=qtractor
pkgver=0.9.35
pkgrel=1
pkgdesc="Audio/MIDI multitrack sequencer"
arch=(x86_64)
url="https://qtractor.sourceforge.io/"
license=(GPL-2.0-or-later)
groups=(pro-audio)
depends=(
gcc-libs
glibc
hicolor-icon-theme
libmad
libxcb
qt6-base
qt6-svg
zlib
)
makedepends=(
alsa-lib
aubio
clap
cmake
dssi
jack
ladspa
liblo
libogg
libsamplerate
libsndfile
libvorbis
lilv
lv2
qt6-tools
rubberband
suil
vst3sdk
)
optdepends=(
'new-session-manager: for session management'
'qt6-wayland: for native wayland support'
)
provides=(
clap-host
dssi-host
ladspa-host
lv2-host
vst-host
vst3-host
)
source=(https://github.com/rncbc/$pkgname/archive/refs/tags/${pkgname}_${pkgver//./_}.tar.gz)
sha512sums=('cf95f9172450698161a7cc3463588b6b691df86f4a4533dd4c9400afe2bb75aefd9191e935277bad8bc0f67389eb359cfd809b5c9d7de5309a9b9efdfb6e504d')
b2sums=('7e4edfc9d3c4b73bb801da8e5c1bbdc818fcc2fa5fe375bcd8322e729d62237407389956acca5a4cb033c68ab5a89472c0445b49349f9ba00cce3854c02ff9f3')
prepare() {
# symlink vst3sdk into place
rm -frv $pkgname-${pkgname}_${pkgver//./_}/src/vst3
ln -fsv /usr/src/vst3sdk $pkgname-${pkgname}_${pkgver//./_}/src/vst3
}
build() {
local cmake_options=(
-B build
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
-D CONFIG_QT6=ON
-D CONFIG_SSE=OFF
-D CONFIG_LV2_UI_GTK2=OFF
-D CONFIG_LV2_UI_GTKMM2=OFF
-S $pkgname-${pkgname}_${pkgver//./_}
-W no-dev
)
cmake "${cmake_options[@]}"
cmake --build build --verbose
}
package() {
depends+=(
alsa-lib libasound.so
aubio libaubio.so
jack libjack.so
liblo liblo.so
libogg libogg.so
libsamplerate libsamplerate.so
libsndfile libsndfile.so
libvorbis libvorbisenc.so libvorbisfile.so libvorbis.so
lilv liblilv-0.so
rubberband librubberband.so
)
DESTDIR="$pkgdir" cmake --install build
install -vDm 644 $pkgname-${pkgname}_${pkgver//./_}/{README,README.VST} -t "$pkgdir/usr/share/doc/$pkgname/"
}