From 7a28cda6221930585b318f2fee2cd143ccad9ad4 Mon Sep 17 00:00:00 2001 From: AlexDltg Date: Tue, 5 Jan 2021 13:11:49 +0100 Subject: [PATCH] intellij-idea-community-edition: add .desktop. --- .../intellij-idea-community-edition/files/idea.desktop | 8 ++++++++ srcpkgs/intellij-idea-community-edition/template | 9 +++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create 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 new file mode 100644 index 00000000000000..5d32e21b019374 --- /dev/null +++ b/srcpkgs/intellij-idea-community-edition/files/idea.desktop @@ -0,0 +1,8 @@ +[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; \ No newline at end of file diff --git a/srcpkgs/intellij-idea-community-edition/template b/srcpkgs/intellij-idea-community-edition/template index 8b41709db36223..418d4518235ef1 100644 --- a/srcpkgs/intellij-idea-community-edition/template +++ b/srcpkgs/intellij-idea-community-edition/template @@ -1,9 +1,9 @@ # Template file for 'intellij-idea-community-edition' pkgname=intellij-idea-community-edition version=2020.3.1 -revision=1 +revision=2 archs="i686 x86_64" -depends="virtual?java-environment giflib libXtst" +depends="virtual?java-environment giflib libXtst hicolor-icon-theme" short_desc="Java integrated development environment by JetBrains" maintainer="John " license="Apache-2.0" @@ -23,6 +23,8 @@ 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 redist product-info.json build.txt ${DESTDIR}/usr/lib/intellij-idea mv LICENSE.txt NOTICE.txt license ${DESTDIR}/usr/share/doc/intellij-idea @@ -58,4 +60,7 @@ do_install() { esac 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 }