58 lines
2.6 KiB
Bash
58 lines
2.6 KiB
Bash
# Template file for 'intellij-idea-community-edition'
|
|
pkgname=intellij-idea-community-edition
|
|
version=2020.1.1
|
|
revision=1
|
|
archs="i686 x86_64"
|
|
depends="virtual?java-environment giflib libXtst"
|
|
short_desc="Java integrated development environment by JetBrains"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="Apache-2.0"
|
|
homepage="https://www.jetbrains.org/"
|
|
distfiles="https://download.jetbrains.com/idea/ideaIC-${version}-no-jbr.tar.gz"
|
|
checksum=d6e1e0c3dcc74b912b2b5e121da0a65e793fb82426195c46929c06874959d2c5
|
|
repository=nonfree
|
|
nopie=yes
|
|
python_version=3
|
|
skiprdeps="/usr/lib/intellij-idea/plugins/Kotlin/bin/linux/LLDBFrontend"
|
|
|
|
post_extract() {
|
|
mv $XBPS_BUILDDIR/idea-IC-* ${wrksrc}
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/bin
|
|
vmkdir usr/share/doc/intellij-idea
|
|
vmkdir usr/lib/intellij-idea
|
|
|
|
mv bin lib plugins redist product-info.json build.txt ${DESTDIR}/usr/lib/intellij-idea
|
|
mv LICENSE.txt NOTICE.txt license ${DESTDIR}/usr/share/doc/intellij-idea
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/android/lib/libwebp/win -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/android/lib/libwebp/mac -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/maven/lib/maven3/lib/jansi-native/windows32 -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/maven/lib/maven3/lib/jansi-native/windows64 -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/maven/lib/maven3/lib/jansi-native/osx -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/maven/lib/maven3/lib/jansi-native/freebsd32 -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/maven/lib/maven3/lib/jansi-native/freebsd64 -rf
|
|
case $XBPS_TARGET_MACHINE in
|
|
x86_64)
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/bin/fsnotifier
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/bin/idea.vmoptions
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/lib/pty4j-native/linux/x86 -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/lib/pty4j-native/linux/ppc64le -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/android/lib/libwebp/linux/libwebp_jni.so
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/maven/lib/maven3/lib/jansi-native/linux32 -rf
|
|
;;
|
|
i686)
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/bin/fsnotifier64
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/bin/idea64.vmoptions
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/bin/libdbm64.so
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/lib/pty4j-native/linux/x86_64 -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/lib/pty4j-native/linux/ppc64le -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/android/lib/libwebp/linux/libwebp_jni64.so
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/maven/lib/maven3/lib/jansi-native/linux64 -rf
|
|
;;
|
|
esac
|
|
|
|
ln -sf /usr/lib/intellij-idea/bin/idea.sh ${DESTDIR}/usr/bin/idea
|
|
}
|