snake: fix package

This commit is contained in:
Henrik Grimler 2020-09-08 14:02:37 +02:00
parent bae02a23c0
commit 9f9dff9cbe
3 changed files with 43 additions and 0 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Eat as much as you want while avoiding walls."
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Tipz Team @TipzTeam"
TERMUX_PKG_VERSION=2017.06.09
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/gogakoreli/snake/archive/4ccdf33feaa0a24578f3ddcf8137e52c93444f15.tar.gz
TERMUX_PKG_SHA256=f99212d620ac593272a0489a7d83b44f92a39bcd11c299c728ea08f1eee656a6
TERMUX_PKG_BUILD_IN_SRC=true

View File

@ -0,0 +1,35 @@
--- ./main.cpp~ 2017-06-09 13:15:17.000000000 +0200
+++ ./main.cpp 2020-09-08 13:59:59.758203243 +0200
@@ -4,7 +4,6 @@
#include <cstdio>
#include <algorithm>
#include <unistd.h>
-#include <bits/stdc++.h>
#include "input.h"
#include "snake.h"
#include "snake_map.h"
@@ -65,4 +65,4 @@
initialize();
start_game();
return 0;
-}
\ No newline at end of file
+}
--- ./input.cpp~ 2017-06-09 13:15:17.000000000 +0200
+++ ./input.cpp 2020-09-08 14:00:10.035093940 +0200
@@ -1,7 +1,7 @@
#include "input.h"
#include <termios.h>
#include <unistd.h>
-#include <bits/stdc++.h>
+#include <iostream>
#include <string>
#include <stdio.h>
@@ -52,4 +51,4 @@
void input_init()
{
-}
\ No newline at end of file
+}

View File

@ -0,0 +1,7 @@
--- ./makefile~ 2017-06-09 13:15:17.000000000 +0200
+++ ./makefile 2020-09-08 13:59:03.970320442 +0200
@@ -1,2 +1,2 @@
all:
- g++ -std=c++11 main.cpp snake.cpp input.cpp snake_map.cpp -o snake -lpthread
\ No newline at end of file
+ $(CXX) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) -std=c++11 main.cpp snake.cpp input.cpp snake_map.cpp -o snake