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

TARBALL=groff-$PKGVER.tar.gz
MD5SUM=08fb04335e2f5e73f23ea4c3adbf0c5f
BUNDLE=fatdog-base-11.3.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$BUNDLE

SLACKREQ= # optionally depends on libuchardet and font-urw-type1 but we can't build them yet
SLACKDESC="groff: groff $PKGVER (Text formatter)  
groff:  
groff: The Groff package contains programs for processing and formatting 
groff: text. It is also needed to display manpages.  
groff: 
groff: 
groff: 
groff: 
groff: 
groff: 
groff:
"


### override download for LFS sources bundle
# $1-src-dir $2-tarball 
pkg_download() {
	echo downloading $BUNDLE for $TARBALL
	wget -P $1 $SRC_URL
	tar -xf $1/$BUNDLE --strip-components=1 -C $1 
	rm $1/$BUNDLE
}

### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	export PAGE=A4 &&
	MAKEFLAGS= && # parallel build fails
	pkg_build_autoconf && pkg_build_slackdesc &&
	
	# extra symlinks for xman
	ln -sfv eqn /usr/bin/geqn &&
	ln -sfv tbl /usr/bin/gtbl
}


