aboutsummaryrefslogtreecommitdiffstats
path: root/main/bwm-ng/APKBUILD
blob: f6878a9bcb4a672c80d2fb653c03c13e5f59b44a (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bwm-ng
pkgver=0.6.3
pkgrel=0
pkgdesc="A small and simple console-based live bandwidth monitor"
url="http://www.gropp.org/"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
makedepends="ncurses-dev autoconf automake libtool"
source="$pkgname-$pkgver.tgz::https://github.com/vgropp/bwm-ng/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	CFLAGS="$CFLAGS -std=gnu89" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-libstatgrab \
		--with-procnetdev \
		--with-ncurses \
		--with-partitions
	make
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="85ce29e6ffa9643b4e7c1d731f4e928ddca8cfdc71c86b65ec4e55058b951eb8da9ab80139145300518223589d5fece5bdc11ede91a1ea394d569993ccdb0ab8  bwm-ng-0.6.3.tgz"