void-packages/srcpkgs/projectM/template

42 lines
1.2 KiB
Bash

# Template file for 'projectM'
pkgname=projectM
version=3.1.12
revision=2
build_style=gnu-configure
build_helper=qmake
configure_args="--datadir=/usr/libexec --enable-qt --enable-pulseaudio
--enable-jack --enable-sdl"
hostmakedepends="pkg-config qt5-host-tools automake libtool which qt5-qmake
qt5-tools-devel"
makedepends="pulseaudio-devel alsa-lib-devel glew-devel ftgl-devel libXext-devel
SDL2-devel gtkglext-devel jack-devel qt5-tools-devel libvisual-devel glm
MesaLib-devel glu-devel"
short_desc="Music visualization"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/projectM-visualizer/projectm"
distfiles="${homepage}/releases/download/v${version}/projectM-${version}.tar.gz"
checksum=b6b99dde5c8f0822ae362606a0429628ee478f4ec943a156723841b742954707
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-fts-devel"
LDFLAGS="-lfts"
fi
post_install() {
# fix location of desktop files
vmkdir usr/share
mv $DESTDIR/usr/libexec/{applications,icons} $DESTDIR/usr/share
}
projectM-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}