[wiki] [sites] [st][patches][desktopentry] Somebody broke this patch. Fix it again. || aleks
commit 0b7be5dca38fd00cc14d238e9e7af45a39ba87ee
Author: aleks <aleks.stier_AT_icloud.com>
Date: Wed May 27 01:20:55 2020 +0200
[st][patches][desktopentry] Somebody broke this patch. Fix it again.
diff --git a/st.suckless.org/patches/desktopentry/index.md b/st.suckless.org/patches/desktopentry/index.md
index e1568e50..4b7e4334 100644
--- a/st.suckless.org/patches/desktopentry/index.md
+++ b/st.suckless.org/patches/desktopentry/index.md
_AT_@ -3,7 +3,7 @@ desktopentry
Description
-----------
-Creates a desktop-entry for st. This enables to find st in a graphical menu and to display it with a nice icon. After applying this patch reinstall st. The *st.desktop* file should be automatically copied to */usr/share/applications* during install and removed during uninstall.
+Creates a desktop-entry for st. This enables to find st in a graphical menu and to display it with a nice icon. After applying this patch reinstall st. The *st.desktop* file is copied to *$(DESTDIR)$(PREFIX)/share/applications* during installation and removed during uninstallation.
Download
--------
diff --git a/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff b/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff
index 143d450b..4d9375cc 100644
--- a/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff
+++ b/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff
_AT_@ -1,15 +1,44 @@
---- st-0.8.2-isotop/Makefile Thu Mar 26 15:55:53 2020
-+++ st-0.8.2/Makefile Sat Feb 9 12:50:41 2019
-_AT_@ -49,12 +49,9 @@ install: st
+From 0ba2850930d2ef22a1774f3dc78884c978f2d8be Mon Sep 17 00:00:00 2001
+From: aleks <aleks.stier_AT_icloud.com>
+Date: Wed, 27 May 2020 01:20:00 +0200
+Subject: [PATCH] Create a desktop-entry for st
+
+---
+ Makefile | 3 +++
+ st.desktop | 7 +++++++
+ 2 files changed, 10 insertions(+)
+ create mode 100644 st.desktop
+
+diff --git a/Makefile b/Makefile
+index ed19e70..29e25b9 100644
+--- a/Makefile
++++ b/Makefile
+_AT_@ -50,9 +50,12 @@ install: st
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
tic -sx st.info
_AT_echo Please see the README file regarding the terminfo entry of st.
-- mkdir -p $(DESTDIR)$(PREFIX)/share/applications
-- cp -f st.desktop $(DESTDIR)$(PREFIX)/share/applications
++ mkdir -p $(DESTDIR)$(PREFIX)/share/applications
++ cp -f st.desktop $(DESTDIR)$(PREFIX)/share/applications
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/st
rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
-- rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop
++ rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop
.PHONY: all options clean dist install uninstall
+diff --git a/st.desktop b/st.desktop
+new file mode 100644
+index 0000000..a1b5116
+--- /dev/null
++++ b/st.desktop
+_AT_@ -0,0 +1,7 @@
++[Desktop Entry]
++Type=Application
++Name=st
++Comment=simple-terminal emulator for X
++Icon=utilities-terminal
++Exec=st
++Categories=System;TerminalEmulator
+--
+2.26.2
+
Received on Wed May 27 2020 - 01:37:44 CEST
This archive was generated by hypermail 2.3.0
: Wed May 27 2020 - 01:48:43 CEST