mktorrent: Bump to 1.1-p20210130
This commit is contained in:
parent
b663c474b3
commit
89036531d2
|
@ -2,9 +2,22 @@ TERMUX_PKG_HOMEPAGE=https://github.com/Rudde/mktorrent
|
|||
TERMUX_PKG_DESCRIPTION="command line utility to create BitTorrent metainfo files"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=1.1
|
||||
TERMUX_PKG_REVISION=3
|
||||
TERMUX_PKG_SRCURL=https://github.com/Rudde/mktorrent/archive/v$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=d0f47500192605d01b5a2569c605e51ed319f557d24cfcbcb23a26d51d6138c9
|
||||
TERMUX_PKG_AUTO_UPDATE=true
|
||||
_COMMIT=de7d011b35458de1472665f50b96c9cf6c303f39
|
||||
_COMMIT_DATE=20210130
|
||||
TERMUX_PKG_VERSION=1.1-p${_COMMIT_DATE}
|
||||
TERMUX_PKG_SRCURL=https://github.com/Rudde/mktorrent.git
|
||||
TERMUX_PKG_GIT_BRANCH=master
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_post_get_source() {
|
||||
git fetch --unshallow
|
||||
git checkout $_COMMIT
|
||||
|
||||
local pdate="p$(git log -1 --format=%cs | sed 's/-//g')"
|
||||
if [[ "$TERMUX_PKG_VERSION" != *"${pdate}" ]]; then
|
||||
echo -n "ERROR: The version string \"$TERMUX_PKG_VERSION\" is"
|
||||
echo -n " different from what is expected to be; should end"
|
||||
echo " with \"${pdate}\"."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue