mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-24 02:36:16 +00:00
3ec82277d7
The termux_git_clone_src script has been updated and now expects git urls to start with git+ instead. %ci:no-build
33 lines
1.0 KiB
Bash
33 lines
1.0 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://mosh.org
|
|
TERMUX_PKG_DESCRIPTION="Mobile shell that supports roaming and intelligent local echo. Bleeding edge git version."
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=2022.02.04
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_GIT_BRANCH=master
|
|
TERMUX_PKG_SRCURL=git+https://github.com/mobile-shell/mosh
|
|
TERMUX_PKG_DEPENDS="libandroid-support, libc++, libprotobuf, ncurses, openssl, openssh, perl"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_CONFLICTS="mosh, mosh-perl"
|
|
TERMUX_PKG_REPLACES="mosh, mosh-perl"
|
|
TERMUX_PKG_PROVIDES="mosh, mosh-perl"
|
|
_COMMIT=dbe419d0e069df3fedc212d456449f64d0280c76
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_protobuf
|
|
./autogen.sh
|
|
}
|
|
|
|
termux_step_post_get_source() {
|
|
git fetch --unshallow
|
|
git checkout "$_COMMIT"
|
|
|
|
local version
|
|
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
|
|
}
|