sys-fs/gdu - 5.37.0 (spikyatlinux)

Search

Install

Install this version:

emerge -a =sys-fs/gdu-5.37.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-fs/gdu-5.37.0

Or alternatively:

emerge --autounmask-write -a =sys-fs/gdu-5.37.0

Package Information

Description:
Disk usage analyzer with console interface written in Go
Homepage:
https://github.com/dundee/gdu
License:
Apache-2.0 BSD BSD-2 MIT

Ebuild Details

Version EAPI Keywords Slot
5.37.0 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# git clone https://github.com/dundee/gdu.git
# cd gdu
# go mod vendor
# tar -czvf gdu-5.29.0-vendor.tar.gz vendor
# upload gdu-5.29.0-vendor.tar.gz to webserver
#
EAPI=8

inherit go-module

DESCRIPTION="Disk usage analyzer with console interface written in Go"
HOMEPAGE="https://github.com/dundee/gdu"
SRC_URI="https://github.com/dundee/gdu/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/spikyatlinux/gdu-vendor-files/releases/download/v${PV}/gdu-${PV}-vendor.tar.gz"

LICENSE="Apache-2.0 BSD BSD-2 MIT"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND=">=dev-lang/go-1.25.0"

DOCS=( README.md gdu.1.md )

src_unpack() {
	default
	tar -xvf "${DISTDIR}/gdu-${PV}-vendor.tar.gz" -C "$S"
}

src_compile() {
	# Inject the build time, build user, and version into the build flags
	ego build -ldflags "-s -w -X 'github.com/dundee/gdu/v5/build.Version=${PV}' \
		-X 'github.com/dundee/gdu/v5/build.Time=$(date +%Y-%m-%d\ %H:%M:%S)' \
		-X 'github.com/dundee/gdu/v5/build.User=SpikyAtLinux (ebuilds_for_gentoo)'" \
		-v -x -work -o "${PN}" "./cmd/${PN}"
}

src_install() {
	dobin gdu
	doman gdu.1
	einstalldocs
}

src_test() {
	ego test ./...
}

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.25.0

Manifest for 5.37.0

Type File Size Source URLs
DIST gdu-5.37.0-vendor.tar.gz 50940712 bytes https://github.com/spikyatlinux/gdu-vendor-files/releases/download/v5.37.0/gdu-5.37.0-vendor.tar.gz
DIST gdu-5.37.0.tar.gz 489166 bytes https://github.com/dundee/gdu/archive/v5.37.0.tar.gz