Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nsnake #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions packages/nsnake/Makefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
--- ../cache/nSnake-3.0.1/Makefile 2014-07-31 05:02:32.000000000 +0000
+++ ./Makefile 2017-05-27 10:13:56.771649741 +0000
@@ -42,7 +42,7 @@
DATE = $(shell date "+%b%Y")

# Install dirs
-PREFIX = /usr
+#PREFIX = /usr
EXEC_PREFIX = $(PREFIX)
DATAROOTDIR = $(PREFIX)/share
BINDIR = $(EXEC_PREFIX)/bin
@@ -63,9 +63,9 @@
# Build info
EXE = $(PACKAGE)
CDEBUG = -O2
-CXXFLAGS = $(CDEBUG) -Wall -Wextra $(CFLAGS_PLATFORM)
-LDFLAGS = -lncurses $(LDFLAGS_PLATFORM)
-INCLUDESDIR = -I"src/" -I"deps/"
+#CXXFLAGS = $(CDEBUG) -Wall -Wextra $(CFLAGS_PLATFORM)
+#LDFLAGS = -lncurses
+INCLUDESDIR = -I"src/" -I"deps/" $(CPPFLAGS)
LIBSDIR =

# All source files
@@ -147,7 +147,7 @@

$(EXE): $(OBJECTS) $(COMMANDER_OBJS)
# Linking...
- $(MUTE)$(CXX) $(OBJECTS) $(COMMANDER_OBJS) -o bin/$(EXE) $(LIBSDIR) $(LDFLAGS)
+ $(MUTE)$(CXX) $(OBJECTS) $(COMMANDER_OBJS) -o bin/$(EXE) $(LIBSDIR) $(LDFLAGS) -lncurses

src/%.o: src/%.cpp
# Compiling $<...
7 changes: 7 additions & 0 deletions packages/nsnake/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://github.com/alexdantas/nSnake
TERMUX_PKG_DESCRIPTION="The classic snake game with textual interface "
TERMUX_PKG_VERSION=3.0.1
TERMUX_PKG_SRCURL=https://github.com/alexdantas/nSnake/archive/v3.0.1.tar.gz
TERMUX_PKG_SHA256=7240dafe35e17b01134591d7ae8f09f5a375cded8b01e43ba97ca3610a09ea61
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_DEPENDS="ncurses, ncurses-ui-libs, ncurses-dev, ncurses-utils"