# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=dfc
pkgver=3.1.1
pkgrel=5
arch="all"
url="https://projects.gw-computing.net/projects/dfc"
pkgdesc="Report file system space usage information with style"
license="BSD-3-Clause"
makedepends="cmake samurai"
source="$pkgname-$pkgver-2.tar.gz::https://github.com/rolinh/dfc/archive/v$pkgver/dfc-$pkgver.tar.gz"
subpackages="$pkgname-doc"
options="!check" # No tests available

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DSYSCONFDIR=/etc
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
0dded1824e6e6734214999f898d253fab760bb69b0f152b44e47b54b30c6ebcf4ac04cec44a37eb655548d4dbaef9328a6b383957b5b8fe6e20cb550d51d46e2  dfc-3.1.1-2.tar.gz
"
