void-packages/srcpkgs/wavemon/template

27 lines
791 B
Bash

# Template file for 'wavemon'
pkgname=wavemon
version=0.9.3
revision=1
build_style="gnu-configure"
hostmakedepends="automake pkg-config"
makedepends="ncurses-devel libnl3-devel"
short_desc="Ncurses-based monitoring application for wireless network devices"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/uoaerg/wavemon"
distfiles="https://github.com/uoaerg/${pkgname}/archive/v${version}.tar.gz"
checksum=ddbeb6ec8ed7d94fa895e5d57ecfe338495df3991f6facc7cf40aa121bf7ff60
CFLAGS="-pthread -I${XBPS_CROSS_BASE}/usr/include/libnl3"
post_extract() {
sed -i 's:ncursesw/curses.h:curses.h:' wavemon.h
sed -i '/net\/if.h/d' iw_if.h
sed -i '/^CFLAGS/d' configure.ac
autoreconf -fi
}
post_install() {
rm -rf ${DESTDIR}/usr/share/wavemon
}