void-packages/srcpkgs/freeplane/template

37 lines
1.2 KiB
Bash
Raw Normal View History

2015-09-19 22:10:56 +00:00
# Template file for 'freeplane'
pkgname=freeplane
2016-10-01 08:15:27 +00:00
version=1.5.17
2015-09-19 22:10:56 +00:00
revision=1
noarch=yes
2016-09-05 19:53:11 +00:00
hostmakedepends="apache-ant openjdk unzip gradle"
2015-09-19 22:10:56 +00:00
depends="virtual?java-runtime"
short_desc="Application for Mind Mapping, Knowledge Management, Project Management"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://freeplane.sourceforge.net/"
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname%20stable/${pkgname}_src-$version.tar.gz"
2016-10-01 08:15:27 +00:00
checksum=44b539f65d2a1b17644704f1fdd57412b0b6cf49e85962a8a060a5aa0678d8e2
2016-09-05 19:53:11 +00:00
make_dirs="
/usr/share/freeplane/fwdir/condperm/ 755 root root
/usr/share/freeplane/fwdir/perms/ 755 root root"
2015-09-19 22:10:56 +00:00
do_build() {
. /etc/profile.d/apache-ant.sh
. /etc/profile.d/10_openjdk.sh
2016-09-05 19:53:11 +00:00
gradle binZip -x test
2015-09-19 22:10:56 +00:00
}
do_install() {
2016-09-05 19:53:11 +00:00
unzip DIST/freeplane_bin-$version.zip -d install
2015-09-19 22:10:56 +00:00
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
}