ninvaders: add package
This commit is contained in:
parent
d183b37657
commit
1dba518c7a
18
packages/ninvaders/Makefile.patch
Normal file
18
packages/ninvaders/Makefile.patch
Normal file
@ -0,0 +1,18 @@
|
||||
--- ../Makefile.orig 2019-08-11 08:02:35.611800199 +0200
|
||||
+++ ./Makefile 2019-08-11 08:05:20.858330233 +0200
|
||||
@@ -1,5 +1,5 @@
|
||||
-CC=gcc
|
||||
-CFLAGS=-O3 -Wall
|
||||
+CC?=gcc
|
||||
+CFLAGS?=-O3 -Wall
|
||||
LIBS=-lncurses
|
||||
|
||||
CFILES=globals.c view.c aliens.c ufo.c player.c nInvaders.c
|
||||
@@ -11,6 +11,6 @@
|
||||
$(CC) $(LDFLAGS) -o$@ $(OFILES) $(LIBS)
|
||||
|
||||
.c.o:
|
||||
- $(CC) -c -I. $(CFLAGS) $(OPTIONS) $<
|
||||
+ $(CC) -c -I. $(CPPFLAGS) $(CFLAGS) $(OPTIONS) $<
|
||||
clean:
|
||||
rm -f nInvaders $(OFILES)
|
12
packages/ninvaders/build.sh
Normal file
12
packages/ninvaders/build.sh
Normal file
@ -0,0 +1,12 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://ninvaders.sourceforge.net
|
||||
TERMUX_PKG_DESCRIPTION="Space Invaders clone based on ncurses for ASCII output"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_VERSION=0.1.1
|
||||
TERMUX_PKG_SRCURL=https://netix.dl.sourceforge.net/project/ninvaders/ninvaders/${TERMUX_PKG_VERSION}/ninvaders-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=bfbc5c378704d9cf5e7fed288dac88859149bee5ed0850175759d310b61fd30b
|
||||
TERMUX_PKG_DEPENDS="ncurses"
|
||||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm700 nInvaders $TERMUX_PREFIX/bin/
|
||||
}
|
Loading…
Reference in New Issue
Block a user