aboutsummaryrefslogtreecommitdiffstats
path: root/main/ncdu/APKBUILD
blob: e7892b7d7085060c3b1011e3fe7533ae0db0a7b3 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ncdu
pkgver=1.12
pkgrel=0
pkgdesc="Text-based disk usage viewer"
url="https://dev.yorhel.nl/ncdu"
arch="all"
license="MIT"
depends=""
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="http://dev.yorhel.nl/download/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="7365ac46c420bc511621216b1747984f  ncdu-1.12.tar.gz"
sha256sums="820e4e4747a2a2ec7a2e9f06d2f5a353516362c22496a10a9834f871b877499a  ncdu-1.12.tar.gz"
sha512sums="20620dd79d2af878442769e097f13806f64f23875dcb85ebccd573a3de43aba5663d496049b64015d13f9a79d624298032c008ef61dfb6f61d8b12902b8dca12  ncdu-1.12.tar.gz"