aboutsummaryrefslogtreecommitdiffstats
path: root/community/dfrs/APKBUILD
blob: 78ad0d49d6acc85774726111dae43416a5c2882c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: kpcyrd <git@rxv.cc>
# Maintainer: kpcyrd <git@rxv.cc>
pkgname=dfrs
pkgver=0.0.7
pkgrel=3
pkgdesc="Display file system space usage using graphs and colors"
url="https://github.com/anthraxx/dfrs"
# s390x fails to build
# riscv64: rust broken
arch="all !s390x !riscv64"
license="MIT"
makedepends="
	cargo
	scdoc
	"
subpackages="$pkgname-doc
	$pkgname-bash-completion
	$pkgname-zsh-completion
	$pkgname-fish-completion
	"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/anthraxx/dfrs/archive/$pkgver.tar.gz"


build() {
	make
}

check() {
	make test
}

package() {
	install -Dm 755 "$builddir/target/release/dfrs" -t "$pkgdir/usr/bin"
	install -Dm 644 "$builddir/contrib/man/dfrs.1" -t "$pkgdir/usr/share/man/man1"

	install -Dm 644 "$builddir/target/completion/bash/dfrs" -t "$pkgdir/usr/share/bash-completion/completions"
	install -Dm 644 "$builddir/target/completion/zsh/_dfrs" -t  "$pkgdir/usr/share/zsh/site-functions"
	install -Dm 644 "$builddir/target/completion/fish/dfrs.fish" -t  "$pkgdir/usr/share/fish/vendor_completions.d"
}

sha512sums="8b8f67ff919e4f1012fe415b564574fe9b11caf01da90a025ca8b8c7707e3f90e865e30cfbeb24db7b80829d082ba7accce44e1897a67e39d129d94c171f21fe  dfrs-0.0.7.tar.gz"