archrelease: copy trunk to community-any
[ArchLinux/community.git] / dfc / repos / community-x86_64 / PKGBUILD
blob10b6baddef52a299ffb61c38b903df5937bac32d
1 # Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
2 # Contributor: Rolinh <robinDOThahlingATgw-computingDOTnet>
4 pkgname=dfc
5 pkgver=3.1.1
6 pkgrel=3
7 pkgdesc="Display file system space usage using graphs and colors"
8 arch=('x86_64')
9 url="http://projects.gw-computing.net/projects/dfc"
10 license=('BSD')
11 depends=('glibc')
12 makedepends=('cmake' 'gettext' 'ninja')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/Rolinh/dfc/archive/v${pkgver}.tar.gz")
14 sha512sums=('0dded1824e6e6734214999f898d253fab760bb69b0f152b44e47b54b30c6ebcf4ac04cec44a37eb655548d4dbaef9328a6b383957b5b8fe6e20cb550d51d46e2')
16 build() {
17   cd "${pkgname}-${pkgver}"
19   cmake \
20     -B build \
21     -G Ninja \
22     -DPREFIX=/usr \
23     -DSYSCONFDIR=/etc \
24     -DCMAKE_BUILD_TYPE=Release \
25     -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE
26   ninja -C build
29 package() {
30   cd "${pkgname}-${pkgver}"
32   DESTDIR="${pkgdir}" ninja -C build install
34   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
37 # vim:set ts=2 sw=2 et: