29 lines
901 B
Bash
29 lines
901 B
Bash
# Template file for 'plantuml'
|
|
pkgname=plantuml
|
|
reverts="8047_1 8053_1 8059_1"
|
|
version=1.2021.7
|
|
revision=1
|
|
create_wrksrc=yes
|
|
hostmakedepends="apache-ant openjdk8"
|
|
depends="virtual?java-environment graphviz"
|
|
short_desc="Create UML diagrams from a plain text language"
|
|
maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://plantuml.com/"
|
|
distfiles="${SOURCEFORGE_SITE}/plantuml/plantuml-gplv2-${version}.tar.gz"
|
|
checksum=0dd85bb63d385c8494d4a09d1f11396e8cc23fbe65810d953c199b792bdd6104
|
|
|
|
do_build() {
|
|
. /etc/profile.d/10_openjdk8.sh
|
|
. /etc/profile.d/apache-ant.sh
|
|
ant
|
|
mv ${pkgname}.jar ${pkgname}-${version}.jar
|
|
echo "#!/bin/sh" > plantuml
|
|
echo "java -jar /usr/share/java/${pkgname}-${version}.jar \$@" >> plantuml
|
|
chmod 755 plantuml
|
|
}
|
|
|
|
do_install() {
|
|
vbin plantuml
|
|
vinstall ${pkgname}-${version}.jar 644 usr/share/java ${pkgname}-${version}.jar
|
|
}
|