# Contributor: Sören Tempel # Contributor: Francesco Colista # Maintainer: Fabian Affolter pkgname=wavemon pkgver=0.8.0 pkgrel=0 pkgdesc="Ncurses-based monitoring application for wireless network devices" url="https://github.com/uoaerg/wavemon" arch="all" license="GPL2+" makedepends="ncurses-dev libcap-dev libnl3-dev autoconf automake" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/uoaerg/$pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare || return 1 cd "$builddir" update_config_sub || return 1 sed -i '/^CFLAGS/d' configure.ac || return 1 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 mkdir -p "$pkgdir"/usr/share/doc mv "$pkgdir"/usr/share/$pkgname "$pkgdir"/usr/share/doc/ } md5sums="816b65577ecf1d2964dee37381901296 wavemon-0.8.0.tar.gz" sha256sums="81ee1f06f8349fee62e98ec5b53dff5b76c4d8fcb439f20cca806255239e3a2a wavemon-0.8.0.tar.gz" sha512sums="2df48eb300e9b30e0cb7a0ab41ba5e10b2a6e8170dbd11a4c978462c8cd6dc1171f79ceadfdb7344c495420a4e87b7dd723efea4f1af59a6d0312d93049ee798 wavemon-0.8.0.tar.gz"