diff --git a/srcpkgs/GoLand/template b/srcpkgs/GoLand/template index 50bd34ae38..e0bb8b2bad 100644 --- a/srcpkgs/GoLand/template +++ b/srcpkgs/GoLand/template @@ -1,15 +1,15 @@ # Template file for 'GoLand' pkgname=GoLand -version=2019.3 +version=2020.1 revision=1 archs="i686 x86_64" -depends="virtual?java-environment" +depends="jetbrains-jdk-bin" short_desc="Cross-platform IDE built specially for Go developers" maintainer="Anton Afanasyev " license="custom:Commercial" homepage="https://www.jetbrains.com/go" distfiles="https://download.jetbrains.com/go/goland-${version}.tar.gz" -checksum=a1bb4e9e61bdcc19e1a8d7303909057e5582a7735d1d5ccce833073d7faf33af +checksum=c63de783facbf8d96eb6714240218c3c320fdbda1ddaa965f7fe72ecf6e897e2 repository=nonfree restricted=yes nopie=yes @@ -46,6 +46,8 @@ do_install() { vlicense $i done + local launcher_path="bin/goland.sh" + sed -i '1 s/$/\nGOLAND_JDK=${GOLAND_JDK:-${IDEA_JDK}}/' "${launcher_path}" vcopy bin ${TARGET_PATH} vcopy help ${TARGET_PATH} vcopy lib ${TARGET_PATH} @@ -53,5 +55,5 @@ do_install() { vcopy product-info.json ${TARGET_PATH} vcopy build.txt ${TARGET_PATH} - ln -sf /${TARGET_PATH}/bin/goland.sh ${DESTDIR}/usr/bin/${pkgname} + ln -sf "/${TARGET_PATH}/${launcher_path}" "${DESTDIR}/usr/bin/${pkgname}" }