[wiki] [sites] use in Makefile || prx

From: <git_AT_suckless.org>
Date: Thu, 26 Mar 2020 15:57:50 +0100

commit cf12e61a6de8c88356d56b262920427cb89e4d1e
Author: prx <prx_AT_ybad.name>
Date: Thu Mar 26 15:57:47 2020 +0100

    use in Makefile

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 0a4930ab..143d450b 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,47 +1,15 @@
-From d0ffefad4c80f45b689aba7dc64c6d155afcdc16 Mon Sep 17 00:00:00 2001
-From: aleks <aleks.stier_AT_icloud.com>
-Date: Sun, 11 Aug 2019 02:20:42 +0200
-Subject: [PATCH] Create a desktop-entry for st
-
-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.
----
- Makefile   | 2 ++
- st.desktop | 7 +++++++
- 2 files changed, 9 insertions(+)
- create mode 100644 st.desktop
-
-diff --git a/Makefile b/Makefile
-index 470ac86..0a58d61 100644
---- a/Makefile
-+++ b/Makefile
-_AT_@ -49,9 +49,11 @@ install: st
+--- 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
  	chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
  	tic -sx st.info
  	_AT_echo Please see the README file regarding the terminfo entry of st.
-+	cp -f st.desktop /usr/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 /usr/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..0663e37
---- /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.22.0
-
Received on Thu Mar 26 2020 - 15:57:50 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 26 2020 - 16:00:47 CET