2020-09-30 21:39:59 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/muesli/duf
|
|
|
|
TERMUX_PKG_DESCRIPTION="Disk usage/free utility"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
|
|
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
|
2020-11-04 21:12:08 +01:00
|
|
|
TERMUX_PKG_VERSION=0.5.0
|
2020-09-30 21:39:59 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/muesli/duf/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2020-11-04 21:12:08 +01:00
|
|
|
TERMUX_PKG_SHA256=d8879fbf091cd6f6a3b95102fdeb7d21b7fc8200df1a9864b89d8e87057fc9c6
|
2020-09-30 21:39:59 +02:00
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_golang
|
|
|
|
|
|
|
|
cd "$TERMUX_PKG_SRCDIR"
|
|
|
|
|
|
|
|
mkdir -p "${TERMUX_PKG_BUILDDIR}/src/github.com/muesli"
|
|
|
|
cp -a "${TERMUX_PKG_SRCDIR}" "${TERMUX_PKG_BUILDDIR}/src/github.com/muesli/duf"
|
|
|
|
cd "${TERMUX_PKG_BUILDDIR}/src/github.com/muesli/duf"
|
|
|
|
|
|
|
|
go get -d -v
|
|
|
|
go build
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm700 ${TERMUX_PKG_BUILDDIR}/src/github.com/muesli/duf/duf \
|
|
|
|
$TERMUX_PREFIX/bin/duf
|
|
|
|
mkdir -p $TERMUX_PREFIX/share/doc/duf
|
|
|
|
|
|
|
|
install ${TERMUX_PKG_BUILDDIR}/src/github.com/muesli/duf/README.md \
|
|
|
|
$TERMUX_PREFIX/share/doc/duf
|
|
|
|
}
|