void-packages/srcpkgs/projectM/template
Érico Rolim 1d9afba66a projectM: split into -devel subpackage.
Also fix location of desktop files, and assign to LDFLAGS instead of
adding to it.
2020-09-27 23:56:45 -03:00

40 lines
1.2 KiB
Bash

# Template file for 'projectM'
pkgname=projectM
version=3.1.7
revision=2
build_style=gnu-configure
configure_args="--datadir=/usr/libexec"
hostmakedepends="pkg-config qt5-host-tools automake libtool which"
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=30af6d1c108efc19311a5636efbbedbe83d23905bb8472dd3fe4b07a21fb5fd3
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-fts-devel"
LDFLAGS="-lfts"
fi
post_install() {
if [ ! "$CROSS_BUILD" ]; then
# fix location of desktop files
# TODO: find out why these files aren't generated for the cross build
mv $DESTDIR/usr/libexec/{applications,icons} $DESTDIR/usr/share
fi
}
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"
}
}