From be0abf3f2aa5e2769622b513125610464e96ba78 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 16 May 2015 16:39:49 +0200 Subject: [PATCH] slurm: fix for musl. --- srcpkgs/slurm/template | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/srcpkgs/slurm/template b/srcpkgs/slurm/template index f03ed307cff..894dbe7872e 100644 --- a/srcpkgs/slurm/template +++ b/srcpkgs/slurm/template @@ -1,7 +1,7 @@ # Template file for 'slurm' pkgname=slurm version=0.4.2 -revision=1 +revision=2 wrksrc="${pkgname}-upstream-${version}" makedepends="ncurses-devel" short_desc="Yet another network load monitor" @@ -11,11 +11,16 @@ homepage="https://github.com/mattthias/slurm" distfiles="https://github.com/mattthias/slurm/archive/upstream/${version}.tar.gz" checksum=8a28e11650928d87a907f9b154f6efd1ad5854cdc56a528da2e02e756e0aa58e +post_extract() { + sed -i '//d' os.h + sed -i 's,,,g' os.h + sed -i 's,,,g' os.h + +} 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