Skip to content

Commit

Permalink
vkmark: rebuild (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
licy183 authored Dec 20, 2024
1 parent 7224ddf commit f61bab6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tur/vkmark/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_LICENSE_FILE="COPYING-LGPL2.1"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
_COMMIT=ab6e6f34077722d5ae33f6bd40b18ef9c0e99a15
TERMUX_PKG_VERSION="0.0.1-r139.${_COMMIT:0:7}"
TERMUX_PKG_REVISION=1
_COMMIT_DATE=2023.04.12
TERMUX_PKG_VERSION="${_COMMIT_DATE}-r139.${_COMMIT:0:7}"
TERMUX_PKG_SRCURL=git+https://github.com/vkmark/vkmark
TERMUX_PKG_GIT_BRANCH="master"
TERMUX_PKG_SHA256=2fde566a542fddc5c74a62c40dcb2d62e1151c7fbdc395adb1dc21857defa09d
Expand All @@ -15,8 +15,14 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-Dxcb=true"
termux_step_post_get_source() {
git fetch --unshallow
git checkout $_COMMIT
local commit_date="$(git log -1 --format=%cs | sed 's/-/./g')"
if [ "$commit_date" != "$_COMMIT_DATE" ]; then
echo -n "ERROR: The specified commit date \"$_COMMIT_DATE\""
echo " is different from what is expected to be: \"$commit_date\""
return 1
fi

local version="$(printf "0.0.1-r%d.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")"
local version="$(printf "${_COMMIT_DATE}-r%d.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")"
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\""
Expand Down

0 comments on commit f61bab6

Please sign in to comment.