42 lines
1.6 KiB
Bash
42 lines
1.6 KiB
Bash
# Template file for 'intellij-idea-community-edition'
|
|
pkgname=intellij-idea-community-edition
|
|
version=2018.2.6
|
|
revision=1
|
|
depends="virtual?java-environment giflib libXtst"
|
|
short_desc="Java integrated development environment by JetBrains"
|
|
maintainer="John <johnz@posteo.net>"
|
|
license="Apache-2.0"
|
|
homepage="https://www.jetbrains.org/"
|
|
distfiles="https://download.jetbrains.com/idea/ideaIC-${version}-no-jdk.tar.gz"
|
|
checksum=b9b9a89cd9be487eb8805c9bd77d05a6889f8bd2856a4a0599f48cdf618edeac
|
|
repository=nonfree
|
|
nopie=yes
|
|
only_for_archs="i686 x86_64"
|
|
|
|
post_extract() {
|
|
mv $XBPS_BUILDDIR/idea-IC-* ${wrksrc}
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/bin
|
|
vmkdir usr/share/doc/intellij-idea
|
|
vmkdir usr/share/intellij-idea
|
|
|
|
mv bin lib plugins redist ${DESTDIR}/usr/share/intellij-idea
|
|
mv LICENSE.txt NOTICE.txt build.txt license ${DESTDIR}/usr/share/doc/intellij-idea
|
|
rm ${DESTDIR}/usr/share/intellij-idea/bin/fsnotifier-arm
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
rm ${DESTDIR}/usr/share/intellij-idea/bin/fsnotifier
|
|
rm ${DESTDIR}/usr/share/intellij-idea/bin/idea.vmoptions
|
|
rm ${DESTDIR}/usr/share/intellij-idea/lib/libpty/linux/x86/libpty.so
|
|
rm ${DESTDIR}/usr/share/intellij-idea/plugins/android/lib/libwebp/linux/libwebp_jni.so
|
|
else
|
|
rm ${DESTDIR}/usr/share/intellij-idea/bin/fsnotifier64
|
|
rm ${DESTDIR}/usr/share/intellij-idea/bin/idea64.vmoptions
|
|
rm ${DESTDIR}/usr/share/intellij-idea/lib/libpty/linux/x86_64/libpty.so
|
|
rm ${DESTDIR}/usr/share/intellij-idea/plugins/android/lib/libwebp/linux/libwebp_jni64.so
|
|
fi
|
|
|
|
ln -sf /usr/share/intellij-idea/bin/idea.sh ${DESTDIR}/usr/bin/idea
|
|
}
|