# Template file for 'nmon' pkgname=nmon version=16n revision=1 build_style=fetch makedepends="ncurses-devel" depends="ncurses" short_desc="Nigel's performance Monitor for Linux" maintainer="Kyle Nusbaum " license="GPL-3.0-or-later" homepage="http://nmon.sourceforge.net/pmwiki.php?n=Main.HomePage" distfiles="${SOURCEFORGE_SITE}/nmon/files/lmon${version}.c" checksum=c0012cc2d925dee940c37ceae297abac64ba5a5c30e575e7418b04028613f5f2 do_build() { case "$XBPS_TARGET_MACHINE" in ppc*) _ARCH="POWER" ;; arm*|aarch64*) _ARCH="ARM" ;; i686*|x86_64*) _ARCH="X86" ;; esac $CC ${CFLAGS} ${LDFLAGS} -D $_ARCH \ lmon${version}.c -lncurses -lm -o nmon } do_install() { vbin nmon }