0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-04 04:48:55 +00:00
Henrik Grimler 3ec82277d7 tree-wide: use git+[...] instead of [...].git for git urls
The termux_git_clone_src script has been updated and now expects git
urls to start with git+ instead.

%ci:no-build
2023-01-01 18:31:43 +01:00

23 lines
744 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/derickr/timelib
TERMUX_PKG_DESCRIPTION="timelib 2020.02 library fork for KPHP"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_LICENSE_FILE="LICENSE.rst"
TERMUX_PKG_MAINTAINER="@termux"
_COMMIT=59ee82faa8d9ed42b1b9b9339e0b989cc929cd4a
TERMUX_PKG_VERSION=2021.03.01
TERMUX_PKG_SRCURL=git+https://github.com/VKCOM/timelib
TERMUX_PKG_GIT_BRANCH=master
TERMUX_PKG_NO_STATICSPLIT=true
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
}