1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-19 17:07:06 +00:00
termux-packages/packages/peco/build.sh
2096779623 1db47528b1 add(main): new package peco
Signed-off-by: 2096779623 <admin@utermux.dev>
2022-07-02 19:53:12 +08:00

26 lines
703 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/peco/peco
TERMUX_PKG_DESCRIPTION="Simplistic interactive filtering tool"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.5.10"
TERMUX_PKG_SRCURL=https://github.com/peco/peco/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=781c2effc4f6a58d9ff96fb0fc8b0fba3aab56a91a34933d68c5de3aea5fe3f6
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
termux_step_pre_configure() {
termux_setup_golang
go mod init || :
go mod tidy
}
termux_step_make() {
cd "$TERMUX_PKG_SRCDIR"/cmd/peco
go build -o peco
}
termux_step_make_install() {
install -Dm700 -t "${TERMUX_PREFIX}"/bin "$TERMUX_PKG_SRCDIR"/cmd/peco/peco
}