mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-01 16:40:33 +00:00
26 lines
581 B
Bash
26 lines
581 B
Bash
TERMUX_PKG_HOMEPAGE=https://wtfutil.com/
|
|
TERMUX_PKG_DESCRIPTION="The personal information dashboard for your terminal"
|
|
TERMUX_PKG_LICENSE="MPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=0.43.0
|
|
TERMUX_PKG_REVISION=2
|
|
# Need metadata in Git repository
|
|
TERMUX_PKG_SRCURL=git+https://github.com/wtfutil/wtf
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_golang
|
|
|
|
go mod init || :
|
|
go mod tidy
|
|
}
|
|
|
|
termux_step_make() {
|
|
go build -o wtfutil
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t $TERMUX_PREFIX/bin wtfutil
|
|
}
|