diff --git a/packages/snake/LICENSE b/packages/snake/LICENSE new file mode 100644 index 000000000..0ce1f544e --- /dev/null +++ b/packages/snake/LICENSE @@ -0,0 +1,19 @@ +(c) Copyright 2017 @gogakoreli (https://github.com/gogakoreli) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/packages/snake/build.sh b/packages/snake/build.sh new file mode 100644 index 000000000..b0e3f2bf0 --- /dev/null +++ b/packages/snake/build.sh @@ -0,0 +1,17 @@ +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_SRCURL=https://github.com/gogakoreli/snake/archive/4ccdf33feaa0a24578f3ddcf8137e52c93444f15.tar.gz +TERMUX_PKG_SHA256=f99212d620ac593272a0489a7d83b44f92a39bcd11c299c728ea08f1eee656a6 +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_make_install() { + install -Dm755 -t $TERMUX_PREFIX/bin/ snake +} + +termux_step_install_license() { + install -Dm644 -t $TERMUX_PREFIX/share/doc/snake/ \ + $TERMUX_PKG_BUILDER_DIR/LICENSE +}