### this file is sourced not run
PKGVER=1.6p
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=lmon16p.c
MD5SUM=a294567253cd49ccad66d5f56435ba9d
SRC_URL=http://sourceforge.net/projects/nmon/files/$TARBALL
BUNDLE=

SLACKREQ=libncurses
SLACKDESC="nmon: nmon $PKGVER (Console system monitor)
nmon: 
nmon: Multi-purpose system monitor displays CPU, memory, network, disks, 
nmon: filesystem, NFS, top processes, resources, etc. It displays in the 
nmon: console and it can save the monitoring result to a text file.
nmon: 
nmon: https://nmon.sourceforge.io/pmwiki.php
nmon: 
nmon: 
nmon: 
nmon: 
"

### default pkg_download
### prepare
pkg_prepare() {
	if pkg_download; then
		cp $SRC_DIR/$TARBALL tmp
	else
		return 1
	fi
}

### default pkg_package
### build
pkg_build() {
	cd /tmp
	gcc $TARBALL -o /usr/bin/nmon -Os -lm -lncurses -D X86
	pkg_build_slackdesc
}


