37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'freeplane'
|
|
pkgname=freeplane
|
|
version=1.5.16
|
|
revision=1
|
|
noarch=yes
|
|
hostmakedepends="apache-ant openjdk unzip gradle"
|
|
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"
|
|
checksum=7f3767524c82854d387823b3ce515225eb424ee9060c0d21208ed71a9a80b1a9
|
|
|
|
make_dirs="
|
|
/usr/share/freeplane/fwdir/condperm/ 755 root root
|
|
/usr/share/freeplane/fwdir/perms/ 755 root root"
|
|
|
|
do_build() {
|
|
. /etc/profile.d/apache-ant.sh
|
|
. /etc/profile.d/10_openjdk.sh
|
|
|
|
gradle 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
|
|
}
|