# Contributor: Sören Tempel # Contributor: Francesco Colista # Maintainer: Fabian Affolter pkgname=wavemon pkgver=0.9.0 pkgrel=0 pkgdesc="Ncurses-based monitoring application for wireless network devices" url="https://github.com/uoaerg/wavemon" arch="all" license="GPL-2.0-or-later" 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 use-atexit.patch " prepare() { default_prepare update_config_sub sed -i '/^CFLAGS/d' configure.ac autoreconf -fi } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make CFLAGS="$CFLAGS -pthread -I/usr/include/libnl3" } package() { make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/usr/share/doc mv "$pkgdir"/usr/share/$pkgname "$pkgdir"/usr/share/doc/ } sha512sums="027e52c2096e36cdb34081b6accbb83943d0337da75d66de3ff61cc3a255faa2b129c2a8c9f72680fc9cd7a1bc9f837d52611b141d5855e01a82ff8e5739cd80 wavemon-0.9.0.tar.gz 9d7edc6c1c2dc1f835c051c7fd4c6c2c71265c092e1a7be5f90107ddd6d75dc6af272af740b7bb84c92bde06c822c5bfbb2c100447245d8ca8eb261bf94cc98b use-atexit.patch"