aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/wavemon/APKBUILD
blob: 4c77fcc213730efedcf17a515deeb4b62d1b15f9 (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
43
44
45
46
47
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=wavemon
pkgver=0.8.0
pkgrel=0
pkgdesc="Ncurses-based monitoring application for wireless network devices"
url="http://eden-feed.erg.abdn.ac.uk/wavemon/"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="ncurses-dev libcap-dev libnl3-dev autoconf automake"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/uoaerg/$pkgname/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1

	sed -i '/^CFLAGS/d' configure.ac
	autoreconf -fi || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make CFLAGS="$CFLAGS -pthread -I/usr/include/libnl3" || return 1
}

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

md5sums="816b65577ecf1d2964dee37381901296  wavemon-0.8.0.tar.gz"
sha256sums="81ee1f06f8349fee62e98ec5b53dff5b76c4d8fcb439f20cca806255239e3a2a  wavemon-0.8.0.tar.gz"
sha512sums="2df48eb300e9b30e0cb7a0ab41ba5e10b2a6e8170dbd11a4c978462c8cd6dc1171f79ceadfdb7344c495420a4e87b7dd723efea4f1af59a6d0312d93049ee798  wavemon-0.8.0.tar.gz"