new package: mazter
This commit is contained in:
parent
66221f7232
commit
4d54a97376
|
@ -0,0 +1,23 @@
|
|||
TERMUX_PKG_HOMEPAGE="https://github.com/Canop/mazter"
|
||||
TERMUX_PKG_DESCRIPTION="Mazes in your terminal"
|
||||
TERMUX_PKG_GROUPS="games"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_LICENSE_FILE="LICENSE"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_SRCURL="https://github.com/Canop/mazter.git"
|
||||
TERMUX_PKG_GIT_BRANCH=main
|
||||
TERMUX_PKG_VERSION=2022.07.28
|
||||
_COMMIT=a85d8973eca07b5bf5e239721940b1739c323529
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_post_get_source() {
|
||||
git fetch --unshallow
|
||||
git checkout $_COMMIT
|
||||
|
||||
local version="$(git log -1 --date=format:"%Y.%m.%d" --format="%ad")"
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue