From 68b8999ae53e92d162303487de63a923a5672404 Mon Sep 17 00:00:00 2001 From: Piekay Date: Fri, 14 Jun 2024 15:45:34 +0200 Subject: [PATCH] intellij-idea-community-edition: removing unvendored desktop file --- .../files/idea.desktop | 8 -------- srcpkgs/intellij-idea-community-edition/template | 16 ++++++++++++++-- 2 files changed, 14 insertions(+), 10 deletions(-) delete mode 100644 srcpkgs/intellij-idea-community-edition/files/idea.desktop diff --git a/srcpkgs/intellij-idea-community-edition/files/idea.desktop b/srcpkgs/intellij-idea-community-edition/files/idea.desktop deleted file mode 100644 index 8aeda8fdbe2061..00000000000000 --- a/srcpkgs/intellij-idea-community-edition/files/idea.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Name=IntelliJ IDEA Community Edition -Comment=Java integrated development environment by JetBrains -Exec=/usr/bin/idea %f -Icon=idea -Terminal=false -Type=Application -Categories=Development; diff --git a/srcpkgs/intellij-idea-community-edition/template b/srcpkgs/intellij-idea-community-edition/template index 51f63e256ad213..27e573226aa7d8 100644 --- a/srcpkgs/intellij-idea-community-edition/template +++ b/srcpkgs/intellij-idea-community-edition/template @@ -1,7 +1,7 @@ # Template file for 'intellij-idea-community-edition' pkgname=intellij-idea-community-edition version=2024.1.2 -revision=1 +revision=2 archs="x86_64" depends="virtual?java-environment giflib libXtst hicolor-icon-theme" short_desc="Java integrated development environment by JetBrains" @@ -15,6 +15,18 @@ 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 @@ -45,5 +57,5 @@ do_install() { 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 ${FILESDIR}/idea.desktop 644 usr/share/applications + vinstall entry.desktop 644 usr/share/applications idea.desktop }