void-packages/srcpkgs/sonic-visualiser/template

56 lines
1.9 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'sonic-visualiser'
pkgname=sonic-visualiser
version=4.2
revision=1
build_style=gnu-configure
build_helper=qmake
hostmakedepends="pkg-config capnproto-devel"
makedepends="capnproto-devel jack-devel libfishsound-devel libid3tag-devel
liblo-devel liblrdf-devel libmad-devel liboggz-devel libsamplerate-devel
opusfile-devel portaudio-devel pulseaudio-devel qt5-svg-devel rubberband-devel
sord-devel vamp-plugin-sdk-devel"
short_desc="Viewing and analysing the contents of music audio files"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="GPL-2.0-or-later"
homepage="https://www.sonicvisualiser.org/"
changelog="https://code.soundsoftware.ac.uk/projects/sonic-visualiser/repository/entry/CHANGELOG"
distfiles="https://code.soundsoftware.ac.uk/attachments/download/2755/${pkgname}-${version}.tar.gz"
checksum=38e91a4035962ad177905a9f1249136fe88d4b596fd9b8f40c82b60dadca5bf3
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-qmake qt5-svg-devel"
configure_args+=" ac_cv_prog_QMAKE=${XBPS_WRAPPERDIR}/qmake"
fi
post_extract() {
if [ "$CROSS_BUILD" ]; then
# dont run target-built testing-binaries when cross building
sed -i -e '/QMAKE_POST_LINK/d' \
test-svcore-base.pro \
test-svcore-data-fileio.pro \
test-svcore-data-model.pro \
test-svcore-system.pro
fi
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
sed -i -e "s/^linux\*:LIBS +=.*/& -latomic/" config.pri.in
fi
}
do_install() {
vbin sonic-visualiser
vbin piper-vamp-simple-server
vbin vamp-plugin-load-checker
vdoc deploy/linux/doc/sonic-visualiser/copyright
vdoc README.md
vdoc README_OSC.md
vdoc CITATION
vinstall icons/sv-icon.svg 644 usr/share/pixmaps
vinstall icons/sv-icon-light.svg 644 usr/share/pixmaps
vinstall deploy/linux/deb-skeleton/usr/share/applications/sonic-visualiser.desktop 644 usr/share/applications
}