void-packages/srcpkgs/lmms/template

40 lines
1.7 KiB
Bash

# Template file for 'lmms'
pkgname=lmms
version=1.2.0rc5
revision=3
wrksrc="lmms-${version/r/-r}"
_x11embed_commit=022b39a1d496d72eb3e5b5188e5559f66afca957
_rpmalloc_commit=2e0479192b8dfb15e0084969fdf06208cffbfd09
build_style=cmake
configure_args="-DWANT_QT5=ON -DWANT_WEAKJACK=OFF"
hostmakedepends="pkg-config qt5-host-tools qt5-qmake extra-cmake-modules"
#missing optional depend libstk for STK instruments plugins
makedepends="SDL_sound-devel fltk-devel fluidsynth-devel jack-devel ladspa-sdk
lame-devel libsamplerate-devel portaudio-devel qt5-tools-devel
qt5-x11extras-devel redland-devel xcb-util-devel xcb-util-keysyms-devel
sndio-devel"
depends="desktop-file-utils"
short_desc="Cross-platform music production software"
maintainer="Logen K. <logen@sudotask.com>"
license="GPL-2-or-later"
homepage="https://lmms.io/"
distfiles="https://github.com/LMMS/lmms/archive/v${version/r/-r}.tar.gz
https://github.com/Lukas-W/qt5-x11embed/archive/${_x11embed_commit}.tar.gz
https://github.com/rampantpixels/rpmalloc/archive/${_rpmalloc_commit}.tar.gz"
checksum="2cdf8c50f1e3a6d1c2158e52dac831ceef2984d8f997876fd448b66d4689f9cc
06159c71a5eeba5662bfb309d215e733f310c2699c8c1de83297d32d13a510bc
d7291aedec6abfc7bcac6106b3b9e24f8b3b225c0bf986fb0d8e8517af611625"
case $XBPS_TARGET_MACHINE in
armv6*) broken="https://travis-ci.org/voidlinux/void-packages/jobs/358366106";;
esac
post_extract() {
[ -d "${wrksrc}/../qt5-x11embed-${_x11embed_commit}" ] &&
rm -rf src/3rdparty/qt5-x11embed &&
mv "${wrksrc}/../qt5-x11embed-${_x11embed_commit}" src/3rdparty/qt5-x11embed
[ -d "${wrksrc}/../rpmalloc-${_rpmalloc_commit}" ] &&
rm -rf src/3rdparty/rpmalloc/rpmalloc &&
mv "${wrksrc}/../rpmalloc-${_rpmalloc_commit}" src/3rdparty/rpmalloc/rpmalloc
}