cavez-of-phear: add package
This commit is contained in:
parent
f4224edf15
commit
cae1f7d8a9
10
packages/cavez-of-phear/Makefile.patch
Normal file
10
packages/cavez-of-phear/Makefile.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- ../Makefile.orig 2019-04-04 20:41:20.790851778 +0200
|
||||
+++ ./Makefile 2019-04-04 20:41:45.497517699 +0200
|
||||
@@ -1,5 +1,5 @@
|
||||
-DESTDIR_BIN = /usr/local/bin
|
||||
-DESTDIR_DATA = /usr/local/share
|
||||
+DESTDIR_BIN = @TERMUX_PREFIX@/bin
|
||||
+DESTDIR_DATA = @TERMUX_PREFIX@/share
|
||||
|
||||
make:
|
||||
cd src && make
|
9
packages/cavez-of-phear/build.sh
Normal file
9
packages/cavez-of-phear/build.sh
Normal file
@ -0,0 +1,9 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/haakonnessjoen/Cavez-of-Phear-packaging
|
||||
TERMUX_PKG_DESCRIPTION="A Boulder Dash like game for consoles/terminals"
|
||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
|
||||
TERMUX_PKG_VERSION=0.5.1
|
||||
TERMUX_PKG_SRCURL=https://github.com/haakonnessjoen/Cavez-of-Phear-packaging/archive/upstream/${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=afe6ced115cb8215b29a4511dc6eda1dea6c9f49a0f5934bfc19412ce578ff0a
|
||||
TERMUX_PKG_DEPENDS="ncurses"
|
||||
TERMUX_PKG_BUILD_IN_SRC=yes
|
21
packages/cavez-of-phear/chk.c.patch
Normal file
21
packages/cavez-of-phear/chk.c.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- ../chk.c.orig 2019-04-04 21:04:02.524144055 +0200
|
||||
+++ ./src/chk.c 2019-04-04 21:04:53.834142517 +0200
|
||||
@@ -33,12 +33,12 @@
|
||||
if (verbose) puts("./data/ ..");
|
||||
if (!chk_file("./data/", "spgraf"))
|
||||
return "./data/";
|
||||
- if (verbose) puts("/usr/local/share/phear/data/ ..");
|
||||
- if (!chk_file("/usr/local/share/phear/data/", "spgraf"))
|
||||
- return "/usr/local/share/phear/data/";
|
||||
- if (verbose) puts("/usr/share/phear/data/ ..");
|
||||
- if (!chk_file("/usr/share/phear/data/", "spgraf"))
|
||||
- return "/usr/share/phear/data/";
|
||||
+ if (verbose) puts("@TERMUX_PREFIX@/local/share/phear/data/ ..");
|
||||
+ if (!chk_file("@TERMUX_PREFIX@/local/share/phear/data/", "spgraf"))
|
||||
+ return "@TERMUX_PREFIX@/local/share/phear/data/";
|
||||
+ if (verbose) puts("@TERMUX_PREFIX@/share/phear/data/ ..");
|
||||
+ if (!chk_file("@TERMUX_PREFIX@/share/phear/data/", "spgraf"))
|
||||
+ return "@TERMUX_PREFIX@/share/phear/data/";
|
||||
if (verbose) puts("Data not found");
|
||||
return NULL;
|
||||
}
|
24
packages/cavez-of-phear/src-Makefile.patch
Normal file
24
packages/cavez-of-phear/src-Makefile.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- ../src-Makefile.orig 2019-04-04 20:42:03.154183838 +0200
|
||||
+++ ./src/Makefile 2019-04-04 20:52:51.247497612 +0200
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
DESTDIR = ..
|
||||
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
INSTALL = install
|
||||
CFLAGS ?= -s -Wall -O2
|
||||
LDFLAGS += -lncurses
|
||||
@@ -10,10 +10,10 @@
|
||||
all: phear install clean
|
||||
|
||||
%.o: %.c
|
||||
- $(CC) $(CFLAGS) -c $^ -o $@
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c $^ -o $@
|
||||
|
||||
phear: $(OBJS)
|
||||
- $(CC) $(CFLAGS) -o $@ $^ ${LDFLAGS}
|
||||
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
install: install-game
|
||||
|
Loading…
Reference in New Issue
Block a user