mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 00:10:52 +00:00
7306f1cc12
This commit has been automatically submitted by Github Actions.
23 lines
725 B
Bash
23 lines
725 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/dundee/gdu
|
|
TERMUX_PKG_DESCRIPTION="Fast disk usage analyzer with console interface written in Go"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="5.29.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/dundee/gdu/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=42e972f46e49995be24b223c91375bfbea547f5e8cf94c0364f7b3eb5b0ed0a3
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_make() {
|
|
termux_setup_golang
|
|
sed -i 's|CGO_ENABLED=0|CGO_ENABLED=1|g' Makefile
|
|
|
|
make build VERSION=$TERMUX_PKG_VERSION
|
|
make gdu.1
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -D dist/gdu -t $TERMUX_PREFIX/bin
|
|
install -Dm644 gdu.1 -t $TERMUX_PREFIX/share/man/man1
|
|
}
|