sonic-visualiser: update to 3.1

This commit is contained in:
newbluemoon 2018-07-13 17:25:49 +02:00 committed by maxice8
parent fb66c70dc5
commit 66354e77ec
1 changed files with 20 additions and 25 deletions

View File

@ -1,38 +1,33 @@
# Template file for 'sonic-visualiser'
pkgname="sonic-visualiser"
version="3.0.3"
pkgname=sonic-visualiser
version=3.1
revision=1
build_style="gnu-configure"
build_style=gnu-configure
hostmakedepends="pkg-config capnproto-devel"
makedepends="qt5-devel qt5-svg-devel liblrdf-devel vamp-plugin-sdk-devel
rubberband-devel libsndfile-devel libsamplerate-devel bzip2-devel sord-devel
serd-devel libmad-devel liblo-devel jack-devel portaudio-devel fftw-devel
liboggz-devel libfishsound-devel libid3tag-devel pulseaudio-devel capnproto-devel"
makedepends="capnproto-devel jack-devel libfishsound-devel libid3tag-devel
liblo-devel liblrdf-devel libmad-devel liboggz-devel libsamplerate-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>"
homepage="http://www.sonicvisualiser.org/"
license="GPL-2"
distfiles="https://code.soundsoftware.ac.uk/attachments/download/2246/${pkgname}-${version}.tar.gz"
checksum=bed25e6f88ddc110e4a59e4fed05be4ea026126369d50f17c896c7defef49f87
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/2381/${pkgname}-${version}.tar.gz"
checksum=9684cb2ae3be7372b0aee44304544d93345f2f9776f3a01def109323af84fdda
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-qmake qt5-svg-devel"
configure_args+=" lrdf_CFLAGS=-I${XBPS_CROSS_BASE}/usr/include/raptor2"
fi
post_extract() {
# piper.capnp.c++ and piper.capnp.h are precompiled with capnproto 0.6.0
# this leads to a version mismatch error with voids newer version of capnproto
# the source file piper.capnp is not included in the source tarball
xbps-uhelper fetch "https://github.com/piper-audio/piper/raw/master/capnp/piper.capnp>piper-cpp/vamp-capnp/piper.capnp"
capnp compile -o c++ piper-cpp/vamp-capnp/piper.capnp
# dont run target-built testing-binaries when cross building
# on i686 1 out of 36 tests fails and compilation aborts
if [ -n "$CROSS_BUILD" ] || [ "${XBPS_TARGET_MACHINE%%-musl}" = "i686" ]; then
sed -i -e 's|QMAKE_POST_LINK = ./$${TARGET}||' test-svcore-base.pro
sed -i -e 's|QMAKE_POST_LINK = ./$${TARGET}||' test-svcore-data-fileio.pro
sed -i -e 's|QMAKE_POST_LINK = ./$${TARGET}||' test-svcore-data-model.pro
if [ -n "$CROSS_BUILD" ]; then
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
}
@ -41,8 +36,8 @@ do_install() {
vbin piper-vamp-simple-server
vbin vamp-plugin-load-checker
vlicense COPYING
vlicense deploy/linux/doc/${pkgname}/copyright
vdoc README
vlicense deploy/linux/doc/sonic-visualiser/copyright
vdoc README.md
vdoc README.OSC
vdoc CITATION
vinstall icons/sv-icon.svg 644 usr/share/pixmaps