0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-17 20:09:35 +00:00
Files
termux-packages/packages/pacman4console/0004-Makefile.patch
Robert Kirkman f55224a8e6 fix(main/pacman4console): do not touch $TERMUX_PREFIX/share/pacman
- Forces the entire software to use the folder `$TERMUX_PREFIX/share/pacman4console`, for the game "`pacman4console`", instead of the folder `$TERMUX_PREFIX/share/pacman`, which should be reserved exclusively for asset files related to the package manager "`pacman`"

- Fixes https://github.com/termux/termux-packages/issues/26369
2025-09-16 12:48:10 -05:00

32 lines
1.2 KiB
Diff

--- ../Makefile.orig 2019-08-11 10:45:43.818342372 +0200
+++ ./Makefile 2019-08-11 11:22:54.202576206 +0200
@@ -1,20 +1,18 @@
-prefix=/usr/local
-bindir=$(prefix)/bin
-datarootdir=$(prefix)/share
+CC?=gcc
+prefix?=/usr/local
+bindir?=$(prefix)/bin
+datarootdir?=$(prefix)/share
all:
- gcc pacman.c -o pacman -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses
- gcc pacmanedit.c -o pacmanedit -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses
+ $(CC) pacman.c -o pacmanplay -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses
+ $(CC) pacmanedit.c -o pacmanedit -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses
install: all
mkdir -p $(DESTDIR)$(bindir)
mkdir -p $(DESTDIR)$(datarootdir)/pacman
cp -fR Levels/ $(DESTDIR)$(datarootdir)/pacman/
- -chown root:games $(DESTDIR)$(bindir)/pacman
- -chown root:games $(DESTDIR)$(datarootdir)/pacman -R
- chmod 750 $(DESTDIR)$(bindir)/pacman
- chmod 750 $(DESTDIR)$(bindir)/pacmanedit
- chmod 750 $(DESTDIR)$(datarootdir)/pacman/ -R
+ install -Dm755 pacmanplay pacmanedit $(DESTDIR)$(bindir)/
+ chmod 755 $(DESTDIR)$(datarootdir)/pacman/ -R
uninstall:
rm -f $(DESTDIR)$(bindir)/pacman