senpai: Bump to 0.1.0

This commit is contained in:
Tee KOBAYASHI 2022-11-18 23:15:15 +09:00 committed by xtkoba
parent 2818322368
commit 1559a9abce
1 changed files with 3 additions and 22 deletions

View File

@ -2,31 +2,12 @@ TERMUX_PKG_HOMEPAGE=https://git.sr.ht/~taiite/senpai
TERMUX_PKG_DESCRIPTION="An IRC client that works best with bouncers"
TERMUX_PKG_LICENSE="ISC"
TERMUX_PKG_MAINTAINER="@termux"
_COMMIT=8091752a67781273944e7a79a803b7a671378313
TERMUX_PKG_VERSION=2021.12.14
# This repository does not accept ".git" suffix:
TERMUX_PKG_SRCURL=https://git.sr.ht/~taiite/senpai
TERMUX_PKG_SHA256=SKIP_CHECKSUM
TERMUX_PKG_GIT_BRANCH=master
TERMUX_PKG_VERSION=1:0.1.0
TERMUX_PKG_SRCURL=https://git.sr.ht/~taiite/senpai/archive/v${TERMUX_PKG_VERSION#*:}.tar.gz
TERMUX_PKG_SHA256=98e1f16ed97433e1e8c8bdabac1cac1920ddcab90e6cef36d8817a41b45a94ff
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS="PREFIX=$TERMUX_PREFIX"
termux_step_get_source() {
termux_git_clone_src
}
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
}
termux_step_pre_configure() {
termux_setup_golang