termux-packages/packages/plantuml/build.sh

22 lines
794 B
Bash
Raw Normal View History

2021-12-31 16:37:30 +01:00
TERMUX_PKG_HOMEPAGE=https://plantuml.com/
TERMUX_PKG_DESCRIPTION="Draws UML diagrams, using a simple and human readable text description"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.2021.16
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/plantuml/${TERMUX_PKG_VERSION}/plantuml-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=a8887c9714d764a7ee44335494fffa689555822a66044d9430d51731a7981c6b
TERMUX_PKG_DEPENDS="openjdk-17"
TERMUX_PKG_BUILD_DEPENDS="ant"
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
sh $TERMUX_PREFIX/bin/ant dist
}
termux_step_make_install() {
mkdir -p $TERMUX_PREFIX/share/java
install -Dm600 plantuml.jar $TERMUX_PREFIX/share/java/
install -Dm700 plantuml $TERMUX_PREFIX/bin/
}