new package: has

This commit is contained in:
Freed-Wu 2022-03-31 14:49:03 +08:00 committed by xtkoba
parent 4ba47e7dc8
commit 3ac0f4df85

20
packages/has/build.sh Normal file
View File

@ -0,0 +1,20 @@
TERMUX_PKG_HOMEPAGE=https://github.com/kdabir/has
TERMUX_PKG_DESCRIPTION="has checks presence of various command line tools and their versions on the path"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.4.0
TERMUX_PKG_SRCURL=$TERMUX_PKG_HOMEPAGE/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=0e73552dbf59e3da0d9254da87c94599595c9ea07c69a62a4853e69bbf3f0d7d
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_DEPENDS=bash
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make() {
return
}
termux_step_make_install() {
local bin="$(basename $TERMUX_PKG_HOMEPAGE)"
install -D "$bin" -t "$TERMUX_PREFIX/bin"
}