aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/jetbrains-jdk-bin/template
blob: aa5fd1078ac33462ee16896541f3e29b2d263840 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Template file for 'jetbrains-jdk-bin'
pkgname=jetbrains-jdk-bin
version=11.0.10b1379.1
revision=1
archs="x86_64"
wrksrc="jbrsdk"
hostmakedepends="wget"
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://dl.bintray.com/jetbrains/intellij-jbr/jbrsdk-${_jdk_ver//\./_}-linux-x64-b${_jdk_build}.tar.gz"
checksum=224e21f5e59aa21ee81793a44b0bdbef62aba43030d7ea90c2e6dc78a4401f86
fetch_cmd="wget --quiet"
# This JDK appears to link to libs that do not exist, but functions well even in their absence.
# Best guess is that they are optional. ¯\_(ツ)_/¯
noverifyrdeps=yes
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 jmods ${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
}