void-packages/srcpkgs/gradle/template
2018-07-20 17:19:10 -03:00

25 lines
764 B
Bash

# Template file for 'gradle'
pkgname=gradle
version=4.9
revision=1
noarch=yes
hostmakedepends="unzip"
depends="virtual?java-environment"
short_desc="Build system for Java/C/C++ software"
maintainer="Adrian Siekierka <kontakt@asie.pl>"
license="Apache-2.0"
homepage="https://gradle.org/"
changelog="https://docs.gradle.org/${version}/release-notes.html"
distfiles="https://services.gradle.org/distributions/gradle-${version}-bin.zip"
checksum=e66e69dce8173dd2004b39ba93586a184628bc6c28461bc771d6835f7f9b0d28
nocross=yes
do_install() {
vmkdir "usr/lib/gradle"
vmkdir "usr/share/doc/gradle"
sed ${FILESDIR}/gradle -e "s;@VERSION@;${version};" > gradle
vbin gradle
cp -v getting-started.html ${DESTDIR}/usr/share/doc/gradle
mv lib ${DESTDIR}/usr/lib/gradle/
}