void-packages/srcpkgs/freeplane/template
fosslinux 1c86362803 freeplane: update to 1.8.6.
Closes: #23258 [via git-merge-pr]
2020-07-01 16:59:17 +02:00

41 lines
1.3 KiB
Bash

# Template file for 'freeplane'
pkgname=freeplane
version=1.8.6
revision=1
archs=noarch
hostmakedepends="apache-ant openjdk8 unzip gradle"
depends="virtual?java-runtime"
short_desc="Application for Mind Mapping, Knowledge Management, Project Management"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-or-later"
homepage="http://freeplane.sourceforge.net/"
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname%20stable/${pkgname}_src-$version.tar.gz"
checksum=f690dce9e8e833a4feb7007d3518480aa0329b42b857040a28fa258cc08b25fc
make_dirs="
/usr/share/freeplane/fwdir/condperm/ 755 root root
/usr/share/freeplane/fwdir/perms/ 755 root root"
case "$XBPS_MACHINE" in
ppc64*) ;;
ppc*|arm*|mips*) broken="No JVM JIT, goes on for hours";;
esac
do_build() {
. /etc/profile.d/apache-ant.sh
. /etc/profile.d/10_openjdk8.sh
gradle format_translation binZip -x test
}
do_install() {
unzip DIST/freeplane_bin-$version.zip -d install
find install -type f -name \*.exe -delete
vmkdir usr/share/$pkgname
mv install/$pkgname-$version/* $DESTDIR/usr/share/$pkgname
vmkdir usr/bin
ln -s /usr/share/freeplane/freeplane.sh $DESTDIR/usr/bin/$pkgname
vmkdir usr/share/pixmaps
ln -s /usr/share/freeplane/freeplane.svg $DESTDIR/usr/share/pixmaps/freeplane.svg
vinstall $FILESDIR/freeplane.desktop 644 usr/share/applications
}