development/notepadqq: Desktop file patched.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Antonio Leal 2022-06-17 20:44:02 +01:00 committed by Willy Sudiarto Raharjo
parent 79620417f1
commit bc74a79258
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 34 additions and 2 deletions

View File

@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=notepadqq
VERSION=${VERSION:-1.4.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -85,6 +85,8 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG INSTALL_ROOT=$PKG
patch $PKG/usr/share/applications/notepadqq.desktop $CWD/notepadqq.desktop.patch
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View File

@ -0,0 +1,30 @@
--- notepadqq.desktop 2022-06-10 15:08:20.381029816 +0100
+++ notepadqq.desktop.new 2022-06-10 15:14:23.869057090 +0100
@@ -1,5 +1,4 @@
[Desktop Entry]
-Encoding=UTF-8
Name=Notepadqq
Name[de_DE]=Notepadqq
Name[fr]=Notepadqq
@@ -24,7 +23,7 @@
StartupNotify=false
MimeType=text/plain;text/html;text/x-php;text/x-c;text/x-shellscript;
Icon=notepadqq
-Categories=Development;Utility;TextEditor;
+Categories=Categories=Qt;KDE;Utility;TextEditor;
Actions=Window;Document;
[Desktop Action Window]
@@ -77,7 +76,6 @@
Name[zh_HK]=開啟新的視窗
Name[zh_TW]=開啟新的視窗
Exec=notepadqq --new-window
-OnlyShowIn=Unity;
[Desktop Action Document]
Name=Open a New Document
@@ -129,4 +127,3 @@
Name[zh_HK]=開啟新的文件
Name[zh_TW]=開啟新的文件
Exec=notepadqq
-OnlyShowIn=Unity;

View File

@ -1,7 +1,7 @@
PRGNAM="notepadqq"
VERSION="1.4.0"
HOMEPAGE="http://https://notepadqq.com"
DOWNLOAD="https://github.com/notepadqq/notepadqq/archive/v1.4.0/notepadqq-1.4.0.tar.gz"
DOWNLOAD="https://github.com/notepadqq/notepadqq/archive/1.4.0/notepadqq-1.4.0.tar.gz"
MD5SUM="67e1ec78abb43ab29d8650c4eef0356b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""