# Template file for 'freeplane' pkgname=freeplane version=1.9.14 revision=1 wrksrc="freeplane-release-${version}" hostmakedepends="apache-ant openjdk11 unzip gradle" depends="openjdk11-jre" short_desc="Application for Mind Mapping, Knowledge Management, Project Management" maintainer="Andrea Brancaleoni " license="GPL-2.0-or-later" homepage="http://freeplane.sourceforge.net/" distfiles="https://github.com/freeplane/freeplane/archive/release-${version}.tar.gz" checksum=8c463c997675b0e351724673e9ca6357f4ef47bd9df0c49b73645090fb19cd7f 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/openjdk.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 }