62 lines
3.1 KiB
Bash
62 lines
3.1 KiB
Bash
# Template file for 'intellij-idea-community-edition'
|
|
pkgname=intellij-idea-community-edition
|
|
version=2024.3
|
|
revision=1
|
|
archs="x86_64"
|
|
depends="virtual?java-environment giflib libXtst hicolor-icon-theme"
|
|
short_desc="Java integrated development environment by JetBrains"
|
|
maintainer="Bnyro <bnyro@tutanota.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://www.jetbrains.org/"
|
|
distfiles="https://download.jetbrains.com/idea/ideaIC-${version}.tar.gz"
|
|
checksum=16d4f411b62ddc7747fe11e8fff004bf8d144df4052b8111306fd4cbba8f748c
|
|
repository=nonfree
|
|
nopie=yes
|
|
python_version=3
|
|
skiprdeps="/usr/lib/intellij-idea/plugins/Kotlin/bin/linux/LLDBFrontend"
|
|
|
|
post_extract() {
|
|
bsdtar xf lib/app-client.jar entry.desktop
|
|
}
|
|
|
|
post_patch() {
|
|
vsed -i -e 's/\$NAME\$/IntelliJ IDEA Community Edition/' entry.desktop
|
|
vsed -i -e 's/\$ICON\$/idea/' entry.desktop
|
|
vsed -i -e 's/\$SCRIPT\$/idea/' entry.desktop
|
|
vsed -i -e 's/\$COMMENT\$/Capable and Ergonomic IDE for JVM/' entry.desktop
|
|
vsed -i -e 's/\$WM_CLASS\$/jetbrains-idea/' entry.desktop
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/bin
|
|
vmkdir usr/share/doc/intellij-idea
|
|
vmkdir usr/lib/intellij-idea
|
|
vmkdir usr/share/pixmaps
|
|
vmkdir usr/share/icons/hicolor/scalable/apps
|
|
|
|
mv bin lib plugins product-info.json build.txt jbr ${DESTDIR}/usr/lib/intellij-idea
|
|
mv LICENSE.txt NOTICE.txt license ${DESTDIR}/usr/share/doc/intellij-idea
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/webp/lib/libwebp/win -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/webp/lib/libwebp/mac -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/cwm-plugin/quiche-native/win32-x86-64/ -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/cwm-plugin/quiche-native/linux-aarch64/ -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/cwm-plugin/quiche-native/darwin-x86-64/ -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/cwm-plugin/quiche-native/darwin-aarch64/ -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
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/lib/pty4j-native/linux/x86 -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/lib/pty4j-native/linux/aarch64 -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/lib/pty4j-native/linux/mips64el -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/lib/pty4j-native/linux/ppc64le -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/lib/pty4j-native/linux/arm -rf
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/webp/lib/libwebp/linux/libwebp_jni.so
|
|
rm ${DESTDIR}/usr/lib/intellij-idea/plugins/maven/lib/maven3/lib/jansi-native/linux32 -rf
|
|
ln -sf /usr/lib/intellij-idea/bin/idea.sh ${DESTDIR}/usr/bin/idea
|
|
ln -sf /usr/lib/intellij-idea/bin/idea.png ${DESTDIR}/usr/share/pixmaps
|
|
ln -sf /usr/lib/intellij-idea/bin/idea.svg ${DESTDIR}/usr/share/icons/hicolor/scalable/apps
|
|
vinstall entry.desktop 644 usr/share/applications idea.desktop
|
|
}
|