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

TARBALL=mandoc-$PKGVER.tar.gz
MD5SUM=67db024e60a9950920cf109ca9aa998e
SRC_URL=http://mandoc.bsd.lv/snapshots//$TARBALL
BUNDLE=

SLACKREQ='sqlite3'
SLACKDESC="mandoc: mandoc $PKGVER (UNIX manpage compiler)  
mandoc:  
mandoc: mandoc is a suite of tools compiling mdoc, the roff macro package of 
mandoc: choice for BSD manual pages, and man, the predominant historical 
mandoc: package for UNIX manuals. It is small, ISO C, ISC-licensed, and quite 
mandoc: fast.  
mandoc: 
mandoc: This package conflicts with man.
mandoc: 
mandoc: http://mandoc.bsd.lv/
mandoc:
"
SLACKCONF='man'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/mandoc*
	{
		echo PREFIX=/usr
		echo LIBDIR=/usr/$LIBDIR/mandoc
		echo MANDIR=/usr/share/man
		echo STATIC=
		echo WWWPREFIX=/srv/www
	} > configure.local &&
	
	./configure &&
	make $MAKEFLAGS && make install &&
	pkg_build_slackdesc
}
