mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-11 05:13:30 +00:00
26 lines
660 B
Bash
26 lines
660 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.1"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL="https://github.com/schachmat/wego/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz"
|
|
TERMUX_PKG_SHA256=cebfa622789aa8e7045657d81754cb502ba189f4b4bebd1a95192528e06969a6
|
|
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
|
|
}
|