aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wavemon/APKBUILD
blob: 22b0f4debe11f2ae066effe36f5fee032201b63f (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=wavemon
pkgver=0.7.6
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="ncurses-dev libcap-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="wavemon-$pkgver.tar.gz::https://github.com/uoaerg/wavemon/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make CFLAGS="-pthread" || return 1
}

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

md5sums="cd0049f174745d32b4fdf3b63d897bad  wavemon-0.7.6.tar.gz"
sha256sums="29c62524432213a6ba8c56ac9a35d83876cbc52745c82c2e2fec78e008d46b0e  wavemon-0.7.6.tar.gz"
sha512sums="d5863bd5ea4ead763b07eb723a2017d1ad53708f5a92cd90522aa508e144f02b60a7ad1123291e635e83b2e88d03be09f54e1ea7e2c2831bd07dc907d2d621af  wavemon-0.7.6.tar.gz"