void-packages/srcpkgs/slurm/template

30 lines
846 B
Bash
Raw Normal View History

2014-11-03 21:32:03 +01:00
# Template file for 'slurm'
pkgname=slurm
version=0.4.2
2015-05-16 16:39:49 +02:00
revision=2
2014-11-03 21:32:03 +01:00
wrksrc="${pkgname}-upstream-${version}"
makedepends="ncurses-devel"
short_desc="Yet another network load monitor"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="https://github.com/mattthias/slurm"
distfiles="https://github.com/mattthias/slurm/archive/upstream/${version}.tar.gz"
checksum=8a28e11650928d87a907f9b154f6efd1ad5854cdc56a528da2e02e756e0aa58e
2015-05-16 16:39:49 +02:00
post_extract() {
sed -i '/<sys\/sysctl.h>/d' os.h
sed -i 's,<net/ppp_defs.h>,<linux/ppp_defs.h>,g' os.h
sed -i 's,<net/if_ppp.h>,<linux/if_ppp.h>,g' os.h
}
2014-11-03 21:32:03 +01:00
do_build() {
${CC} ${CFLAGS} -o slurm slurm.c ${LDFLAGS} \
-D_HAVE_NCURSES -D_HAVE_NCURSES_COLOR -D__Debian__ -lncurses
}
do_install() {
vbin slurm
vman slurm.1
vmkdir usr/share/slurm
vcopy "themes/*" usr/share/slurm
}