projectM: split into -devel subpackage.

Also fix location of desktop files, and assign to LDFLAGS instead of
adding to it.
This commit is contained in:
Érico Rolim 2020-09-27 20:41:40 -03:00 committed by Érico Nogueira Rolim
parent 3a8575fe67
commit 1d9afba66a
3 changed files with 23 additions and 2 deletions

View file

@ -765,6 +765,7 @@ libpulse-mainloop-glib.so.0 libpulseaudio-1.0_1
libpulse-simple.so.0 libpulseaudio-1.0_1
libpulsecommon-13.0.so libpulseaudio-13.0_1
libpulsecore-13.0.so libpulseaudio-13.0_1
libprojectM.so.3 projectM-3.1.7_2
liborc-0.4.so.0 orc-0.4.11_1
liborc-test-0.4.so.0 orc-0.4.11_1
libgmime-2.6.so.0 gmime-2.6.4_1

1
srcpkgs/projectM-devel Symbolic link
View file

@ -0,0 +1 @@
projectM

View file

@ -1,7 +1,7 @@
# Template file for 'projectM'
pkgname=projectM
version=3.1.7
revision=1
revision=2
build_style=gnu-configure
configure_args="--datadir=/usr/libexec"
hostmakedepends="pkg-config qt5-host-tools automake libtool which"
@ -17,5 +17,24 @@ checksum=30af6d1c108efc19311a5636efbbedbe83d23905bb8472dd3fe4b07a21fb5fd3
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-fts-devel"
export LDFLAGS+=" -lfts"
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"
}
}