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

# source: james
TARBALL=mountmon-2017-05-08.tar.bz2
MD5SUM=bb7dfeae160d102738049d06f81243e5
SRC_URL=http://distro.ibiblio.org/fatdog/source/710/$TARBALL
BUNDLE=

SLACKREQ= # build-time: musl
SLACKDESC="mountmon: mountmon $PKGVER (Mount monitor)
mountmon: 
mountmon: mountmon monitors mount/unmount events; and output these events to 
mountmon: stdout. Format is the same as /proc/mount entry. This events can be 
mountmon: used for other things e.g. trigger udev events.
mountmon: 
mountmon: 
mountmon: 
mountmon: 
mountmon: 
mountmon: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/mountmon*

	if type musl-gcc > /dev/null; then
		make mountmon-static &&
		install -m755 mountmon-static /usr/sbin/mountmon
	else
		make &&
		install -m755 mountmon /usr/sbin/mountmon
	fi &&
		
	pkg_build_slackdesc
}
   
