mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-27 05:02:38 +00:00
26 lines
703 B
Bash
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
|
|
}
|