void-packages/srcpkgs/ditaa/template

27 lines
843 B
Bash
Raw Normal View History

2019-10-04 05:07:17 +00:00
# Template file for 'ditaa'
pkgname=ditaa
version=0.11.0
revision=1
archs=noarch
create_wrksrc=yes
build_style=fetch
depends="virtual?java-environment"
short_desc="Small utility that converts ascii-art diagrams to bitmap diagrams"
maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
license="GPL-3.0-or-later"
homepage="https://github.com/stathissideris/ditaa"
distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}-standalone.jar"
checksum=9418aa63ff6d89c5d2318396f59836e120e75bea7a5930c4d34aa10fe7a196a9
do_build() {
mv ${pkgname}-${version}-standalone.jar ${pkgname}-${version}.jar
echo "#!/bin/sh" > ditaa
echo "java -jar /usr/share/java/${pkgname}-${version}.jar \$@" >> ditaa
chmod 755 ditaa
}
do_install() {
vbin ditaa
vinstall ${pkgname}-${version}.jar 644 usr/share/java ${pkgname}-${version}.jar
}