From bc74a792584082818a95160e69a64068c109a1ab Mon Sep 17 00:00:00 2001 From: Antonio Leal Date: Fri, 17 Jun 2022 20:44:02 +0100 Subject: development/notepadqq: Desktop file patched. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- development/notepadqq/notepadqq.SlackBuild | 4 +++- development/notepadqq/notepadqq.desktop.patch | 30 +++++++++++++++++++++++++++ development/notepadqq/notepadqq.info | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 development/notepadqq/notepadqq.desktop.patch (limited to 'development') diff --git a/development/notepadqq/notepadqq.SlackBuild b/development/notepadqq/notepadqq.SlackBuild index c7fc670691..17e7c6de1b 100644 --- a/development/notepadqq/notepadqq.SlackBuild +++ b/development/notepadqq/notepadqq.SlackBuild @@ -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 diff --git a/development/notepadqq/notepadqq.desktop.patch b/development/notepadqq/notepadqq.desktop.patch new file mode 100644 index 0000000000..9f104de34b --- /dev/null +++ b/development/notepadqq/notepadqq.desktop.patch @@ -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; diff --git a/development/notepadqq/notepadqq.info b/development/notepadqq/notepadqq.info index c0da3cbc7b..6014011b6b 100644 --- a/development/notepadqq/notepadqq.info +++ b/development/notepadqq/notepadqq.info @@ -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="" -- cgit v1.2.3