33 lines
939 B
Bash
33 lines
939 B
Bash
# Template file for 'jetbrains-jdk-bin'
|
|
pkgname=jetbrains-jdk-bin
|
|
version=11.0.15b2043.56
|
|
revision=1
|
|
archs="x86_64"
|
|
short_desc="JetBrains Java 11 JDK"
|
|
maintainer="Anton Afanasyev <anton@doubleasoftware.com>"
|
|
license="GPL-2.0-only, Classpath-exception-2.0"
|
|
homepage="https://github.com/JetBrains/JetBrainsRuntime"
|
|
_jdk_ver=${version%b*}
|
|
_jdk_build=${version#*b}
|
|
distfiles="https://cache-redirector.jetbrains.com/intellij-jbr/jbr_jcef-${_jdk_ver//\./_}-linux-x64-b${_jdk_build}.tar.gz"
|
|
checksum=192bc1c4d877a9035a08db8a4bc9ac98551fa344ec5835f08d455fab66c82fe0
|
|
nopie=yes
|
|
|
|
do_install() {
|
|
TARGET_PATH="usr/lib/jvm/jbrsdk"
|
|
|
|
vmkdir ${TARGET_PATH}
|
|
|
|
vcopy bin ${TARGET_PATH}
|
|
vcopy conf ${TARGET_PATH}
|
|
vcopy include ${TARGET_PATH}
|
|
vcopy legal ${TARGET_PATH}
|
|
vcopy lib ${TARGET_PATH}
|
|
vcopy release ${TARGET_PATH}
|
|
|
|
vmkdir etc/profile.d
|
|
cat > ${DESTDIR}/etc/profile.d/10_jbrsdk.sh <<EOF
|
|
export IDEA_JDK=\${IDEA_JDK=/usr/lib/jvm/jbrsdk}
|
|
EOF
|
|
}
|