blob: eade9d80637c52ae0b96e497200451ae684bc544 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
--- Makefile.orig 2025-05-17 14:19:52 UTC
+++ Makefile
@@ -1,8 +1,8 @@
-prefix = /usr/local
-gamesdir = $(prefix)/games
-datadir = $(prefix)/share
+prefix? = /usr/local
+gamesdir = $(prefix)/bin
+datadir = $(prefix)/share/monsterz
mandir = $(prefix)/share/man
-pkgdatadir = $(datadir)/games/monsterz
+pkgdatadir = $(datadir)
applicationsdir = $(datadir)/applications
scoredir = /var/games
scorefile = $(scoredir)/monsterz
@@ -53,8 +53,8 @@ install: all
$(INSTALL_DIR) $(DESTDIR)$(applicationsdir)
$(INSTALL_DIR) $(DESTDIR)$(mandir)/man6
$(INSTALL_PROGRAM) monsterz $(DESTDIR)$(gamesdir)/
- chown root:games $(DESTDIR)$(gamesdir)/monsterz
- chmod g+s $(DESTDIR)$(gamesdir)/monsterz
+ #chown root:games $(DESTDIR)$(gamesdir)/monsterz
+ #chmod g+s $(DESTDIR)$(gamesdir)/monsterz
$(INSTALL_DIR) $(DESTDIR)$(pkgdatadir)/graphics
$(INSTALL_DIR) $(DESTDIR)$(pkgdatadir)/sound
$(INSTALL_SCRIPT) monsterz.py $(DESTDIR)$(pkgdatadir)/
@@ -63,9 +63,9 @@ install: all
$(INSTALL_DATA) monsterz.desktop $(DESTDIR)$(applicationsdir)
$(INSTALL_DATA) monsterz.6 $(DESTDIR)$(mandir)/man6
$(INSTALL_DIR) $(DESTDIR)$(scoredir)
- test -f $(DESTDIR)$(scorefile) || echo "" > $(DESTDIR)$(scorefile)
- chown root:games $(DESTDIR)$(scorefile)
- chmod g+w $(DESTDIR)$(scorefile)
+ test -f $(DESTDIR)$(scorefile) || /usr/bin/touch $(DESTDIR)$(scorefile)
+ #chown root:games $(DESTDIR)$(scorefile)
+ #chmod g+w $(DESTDIR)$(scorefile)
uninstall:
rm -f $(DESTDIR)$(gamesdir)/monsterz
|