From e685a5080fec379563367966816339a59caaebe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 3 Nov 2015 16:15:22 +0100 Subject: [PATCH] gradle: use $version for APP_VERSION as well --- srcpkgs/gradle/files/gradle | 2 +- srcpkgs/gradle/template | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/gradle/files/gradle b/srcpkgs/gradle/files/gradle index 6b32cb719ef..88e35cd3c42 100644 --- a/srcpkgs/gradle/files/gradle +++ b/srcpkgs/gradle/files/gradle @@ -2,6 +2,6 @@ APP_NAME="Gradle" APP_BASE_NAME=`basename "$0"` APP_HOME="/usr/lib/gradle" -APP_VERSION=2.8 +APP_VERSION=@VERSION@ java $JAVA_OPTS -classpath $APP_HOME/lib/gradle-launcher-$APP_VERSION.jar org.gradle.launcher.GradleMain "$@" diff --git a/srcpkgs/gradle/template b/srcpkgs/gradle/template index ec8be9c98a1..5b888cc6ead 100644 --- a/srcpkgs/gradle/template +++ b/srcpkgs/gradle/template @@ -15,7 +15,8 @@ checksum=a88db9c2f104defdaa8011c58cf6cda6c114298ae3695ecfb8beb30da3a903cb do_install() { vmkdir "usr/lib/gradle" vmkdir "usr/share/doc/gradle" - vbin ${FILESDIR}/gradle + sed ${FILESDIR}/gradle -e "s;@VERSION@;${version};" > gradle + vbin gradle cp -v getting-started.html changelog.txt ${DESTDIR}/usr/share/doc/gradle mv lib ${DESTDIR}/usr/lib/gradle/