SHA256
1
0
forked from pool/wumpus
wumpus/wumpus-Makefile.patch
Dirk Stoecker a733125e0c Accepting request 789236 from home:cgiboudeaux:branches:games
- Update to 1.7:
  * license change from BSD-3-Clause to BSD-2-Clause
  * Minor bug fix for suprhack
  * Added a logo and a historical note about it
- Run spec-cleaner
- Update wumpus-Makefile.patch
- Drop wumpus-superhack.c.patch, merged upstream.
- Drop wumpus-wumpus.c.patch, merged upstream.

OBS-URL: https://build.opensuse.org/request/show/789236
OBS-URL: https://build.opensuse.org/package/show/games/wumpus?expand=0&rev=4
2020-03-30 15:22:30 +00:00

37 lines
1.5 KiB
Diff

diff --git a/Makefile b/Makefile
index ef8bddd..39b0a4d 100644
--- a/Makefile
+++ b/Makefile
@@ -31,14 +31,25 @@ wumpus.html: wumpus.xml
SOURCES = README COPYING NEWS control Makefile wumpus.c superhack.c wumpus.xml wumpus.png wumpus.desktop superhack.desktop
install: wumpus superhack wumpus.6
- mkdir -p $(prefix)/bin
- mkdir -p $(prefix)/share/man/man6
- cp wumpus superhack $(prefix)/bin/
- cp wumpus.6 $(prefix)/share/man/man6/
+ install -m 0755 -d $(DESTDIR)/usr/bin/
+ install -m 0755 -d $(DESTDIR)/usr/share/man/man6/
+ install -m 0755 -d $(DESTDIR)//usr/share/applications/
+ install -m 0755 -d $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/
+ install -m 0755 -d $(DESTDIR)/usr/share/appdata/
+ install -m 0755 superhack wumpus $(DESTDIR)/usr/bin/
+ install -m 0644 wumpus.6 $(DESTDIR)/usr/share/man/man6/
+ install -m 0644 wumpus.desktop $(DESTDIR)/usr/share/applications/
+ install -m 0644 superhack.desktop $(DESTDIR)/usr/share/applications/
+ install -m 0644 wumpus.png $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/
+ install -m 0644 wumpus.xml $(DESTDIR)/usr/share/appdata/
uninstall:
- rm $(prefix)/bin/wumpus $(prefix)/bin/superhack
- rm $(prefix)/share/man/man6/wumpus.6
+ rm -f /usr/bin/superhack /usr/bin/wumpus
+ rm -f /usr/share/man/man6/wumpus.6
+ rm -f /usr/share/applications/wumpus.desktop
+ rm -f /usr/share/applications/superhack.desktop
+ rm -f /usr/share/icons/hicolor/48x48/apps/wumpus.png
+ rm -f /usr/share/appdata/wumpus.xml
CPPCHECKOPTS =
cppcheck: