snake: Bump to 2022.11.07

This commit is contained in:
Tee KOBAYASHI 2022-11-20 20:03:56 +09:00 committed by xtkoba
parent 887e9a048d
commit edeba17690
2 changed files with 16 additions and 18 deletions

View File

@ -2,14 +2,26 @@ TERMUX_PKG_HOMEPAGE=https://github.com/gogakoreli/snake
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=2
TERMUX_PKG_SRCURL=https://github.com/gogakoreli/snake/archive/4ccdf33feaa0a24578f3ddcf8137e52c93444f15.tar.gz
TERMUX_PKG_SHA256=f99212d620ac593272a0489a7d83b44f92a39bcd11c299c728ea08f1eee656a6
_COMMIT=a57f7f8aa8c77fcce2dabafca1a5ec4b96825231
TERMUX_PKG_VERSION=2022.11.07
TERMUX_PKG_SRCURL=https://github.com/gogakoreli/snake.git
TERMUX_PKG_GIT_BRANCH=master
TERMUX_PKG_DEPENDS="libc++"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_GROUPS="games"
termux_step_post_get_source() {
git fetch --unshallow
git checkout $_COMMIT
local version="$(git log -1 --format=%cs | sed 's/-/./g')"
if [ "$version" != "$TERMUX_PKG_VERSION" ]; then
echo -n "ERROR: The specified version \"$TERMUX_PKG_VERSION\""
echo " is different from what is expected to be: \"$version\""
return 1
fi
}
termux_step_make_install() {
install -Dm755 -t $TERMUX_PREFIX/bin/ snake
}

View File

@ -8,13 +8,6 @@
#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 @@
@ -26,10 +19,3 @@
#include <string>
#include <stdio.h>
@@ -52,4 +51,4 @@
void input_init()
{
-}
\ No newline at end of file
+}