APKBUILD 996 Bytes
Newer Older
Fabian Affolter's avatar
Fabian Affolter committed
1 2 3
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ncdu
Fabian Affolter's avatar
Fabian Affolter committed
4 5
pkgver=1.12
pkgrel=0
Fabian Affolter's avatar
Fabian Affolter committed
6
pkgdesc="Text-based disk usage viewer"
7
url="https://dev.yorhel.nl/ncdu"
Fabian Affolter's avatar
Fabian Affolter committed
8 9 10 11 12 13
arch="all"
license="MIT"
depends=""
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="http://dev.yorhel.nl/download/$pkgname-$pkgver.tar.gz"
Jakub Jirutka's avatar
Jakub Jirutka committed
14
builddir="$srcdir/$pkgname-$pkgver"
Fabian Affolter's avatar
Fabian Affolter committed
15 16

build() {
Jakub Jirutka's avatar
Jakub Jirutka committed
17
	cd "$builddir"
Fabian Affolter's avatar
Fabian Affolter committed
18
	./configure \
19 20
		--build=$CBUILD \
		--host=$CHOST \
Fabian Affolter's avatar
Fabian Affolter committed
21 22 23 24 25 26 27 28
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
Jakub Jirutka's avatar
Jakub Jirutka committed
29
	cd "$builddir"
Fabian Affolter's avatar
Fabian Affolter committed
30 31 32
	make DESTDIR="$pkgdir" install || return 1
}

Fabian Affolter's avatar
Fabian Affolter committed
33 34 35
md5sums="7365ac46c420bc511621216b1747984f  ncdu-1.12.tar.gz"
sha256sums="820e4e4747a2a2ec7a2e9f06d2f5a353516362c22496a10a9834f871b877499a  ncdu-1.12.tar.gz"
sha512sums="20620dd79d2af878442769e097f13806f64f23875dcb85ebccd573a3de43aba5663d496049b64015d13f9a79d624298032c008ef61dfb6f61d8b12902b8dca12  ncdu-1.12.tar.gz"