void-packages/srcpkgs/vitetris/patches/Makefile.patch

35 lines
933 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
include config.mk
-PROGNAME = tetris$(EXE)
+PROGNAME = vitetris$(EXE)
# Uncomment to change the default. (Only used in Unix-like systems.)
-#HISCORE_FILENAME = /var/games/vitetris-hiscores
+HISCORE_FILENAME = /var/games/vitetris/hiscores
INSTALL = install -oroot -groot
@@ -56,7 +56,7 @@
install: $(PROGNAME)
$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(docdir)
$(INSTALL) -m755 $(PROGNAME) $(DESTDIR)$(bindir)
- $(INSTALL) -m644 README licence.txt $(DESTDIR)$(docdir)
+ $(INSTALL) -m644 README $(DESTDIR)$(docdir)
if [ -n "$(pixmapdir)" ]; then \
$(INSTALL) -d $(DESTDIR)$(pixmapdir) && \
$(INSTALL) -m644 vitetris.xpm $(DESTDIR)$(pixmapdir); fi
--- a/src/config2.h
+++ b/src/config2.h
@@ -15,7 +15,7 @@
#endif
#if UNIX
-#define CONFIG_FILENAME ".vitetris"
+#define CONFIG_FILENAME ".config/vitetris"
#else
#define CONFIG_FILENAME "vitetris.cfg"
#endif