mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-03 06:48:20 +00:00
25 lines
638 B
Bash
25 lines
638 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/schachmat/wego
|
|
TERMUX_PKG_DESCRIPTION="weather app for the terminal"
|
|
TERMUX_PKG_LICENSE="ISC"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="2.3"
|
|
TERMUX_PKG_SRCURL="https://github.com/schachmat/wego/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz"
|
|
TERMUX_PKG_SHA256=6a7501ab537709d1d9fc04f14e5a2c5a8f99309591a8dae75260caf4a74ce567
|
|
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() {
|
|
go build -o wego
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm755 -t "${TERMUX_PREFIX}"/bin wego
|
|
}
|