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

# source: james
TARBALL=pflask-master-20180927.tar.bz2
MD5SUM=f6b9e21b630557919710bb55c86184e8
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$TARBALL
BUNDLE=

SLACKREQ='dbus libcap-ng'
SLACKDESC="pflask: pflask $PKGVER (Container tool)
pflask: 
pflask: pflask is a simple tool for creating process containers on LInux. It 
pflask: can be used for running single commands or even booting a whole 
pflask: operating system inside an isolated environment, where the filesystem 
pflask: hierarchy, networking, process tree, IPC subsystems and host/domain 
pflask: name can be insulated from the host system and other containers.
pflask: 
pflask: https://ghedo.github.io/pflask/
pflask: https://github.com/ghedo/pflask
pflask: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CFLAGS="$CFLAGS -fcommon" # gcc 12.x compat flags
	cd /tmp/pflask* &&
	#./bootstrap.py && # we already did this outside
	./waf configure --prefix=/usr &&
	./waf build $MAKEFLAGS &&
	./waf install &&
	pkg_build_slackdesc &&
	
	# docs
	mkdir -p /usr/share/doc/pflask-$PKGVER &&
	install -m644 README.rst docs/*.rst /tmp/pkg/pflask.htm.maff /usr/share/doc/pflask-$PKGVER

}
