void-packages/srcpkgs/ditaa/template
Đoàn Trần Công Danh 2d9916aa20 ditaa: remove noarch
2020-11-22 08:50:21 +07:00

25 lines
830 B
Bash

# Template file for 'ditaa'
pkgname=ditaa
version=0.11.0
revision=2
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
}