2019-12-15 09:25:32 +01:00
|
|
|
# Template file for 'DataGrip'
|
|
|
|
pkgname=DataGrip
|
2020-07-24 08:32:43 +02:00
|
|
|
version=2020.1.5
|
2019-12-15 09:25:32 +01:00
|
|
|
revision=1
|
|
|
|
archs="i686 x86_64"
|
|
|
|
wrksrc="DataGrip-${version}"
|
|
|
|
depends="jetbrains-jdk-bin"
|
|
|
|
short_desc="Cross-Platform IDE for Databases & SQL by JetBrains"
|
|
|
|
maintainer="Anton Afanasyev <anton@doubleasoftware.com>"
|
|
|
|
license="custom:Commercial"
|
|
|
|
homepage="https://www.jetbrains.com/datagrip"
|
|
|
|
distfiles="https://download.jetbrains.com/datagrip/datagrip-${version}.tar.gz"
|
2020-07-24 08:32:43 +02:00
|
|
|
checksum=a97231cbfe656ef3fcad5b66f3bd484cc676b5e89780543efdd49420ce690518
|
2019-12-15 09:25:32 +01:00
|
|
|
repository=nonfree
|
|
|
|
restricted=yes
|
|
|
|
nopie=yes
|
2020-05-04 09:32:22 +02:00
|
|
|
python_version=3
|
2019-12-15 09:25:32 +01:00
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
# Remove files for other CPU architectures
|
|
|
|
rm -rf lib/pty4j-native/linux/ppc64le
|
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
x86_64)
|
|
|
|
rm -rf bin/fsnotifier
|
|
|
|
rm -rf bin/datagrip.vmoptions
|
|
|
|
rm -rf lib/pty4j-native/linux/x86
|
|
|
|
;;
|
|
|
|
i686)
|
|
|
|
rm -rf bin/fsnotifier64
|
|
|
|
rm -rf bin/datagrip64.vmoptions
|
|
|
|
rm -rf lib/pty4j-native/linux/x86_64
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
TARGET_PATH="usr/lib/${pkgname}"
|
|
|
|
|
|
|
|
vmkdir usr/bin
|
|
|
|
vmkdir ${TARGET_PATH}
|
|
|
|
|
|
|
|
local i
|
|
|
|
for i in license/* ; do
|
|
|
|
vlicense $i
|
|
|
|
done
|
|
|
|
|
2020-03-26 16:16:27 +01:00
|
|
|
local launcher_path="bin/datagrip.sh"
|
|
|
|
sed -i '1 s/$/\nDATAGRIP_JDK=${DATAGRIP_JDK:-${IDEA_JDK}}/' "${launcher_path}"
|
2019-12-15 09:25:32 +01:00
|
|
|
vcopy bin ${TARGET_PATH}
|
|
|
|
vcopy lib ${TARGET_PATH}
|
|
|
|
vcopy plugins ${TARGET_PATH}
|
|
|
|
vcopy product-info.json ${TARGET_PATH}
|
|
|
|
vcopy build.txt ${TARGET_PATH}
|
|
|
|
|
2020-03-26 16:16:27 +01:00
|
|
|
ln -sf "/${TARGET_PATH}/${launcher_path}" "${DESTDIR}/usr/bin/${pkgname}"
|
2019-12-15 09:25:32 +01:00
|
|
|
}
|