mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-11 23:00:52 +00:00
4ea9468987
[no ci]
32 lines
979 B
Bash
32 lines
979 B
Bash
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"
|
|
TERMUX_PKG_VERSION=0.8.1
|
|
TERMUX_PKG_REVISION=3
|
|
TERMUX_PKG_SRCURL=https://github.com/muesli/duf/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=ebc3880540b25186ace220c09af859f867251f4ecaef435525a141d98d71a27a
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
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
|
|
}
|