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

# source: james
TARBALL=halibut-1.2.tar.gz
MD5SUM=c1606244577cb526fd39df489accbb9f
SRC_URL=https://www.chiark.greenend.org.uk/~sgtatham/halibut/halibut-1.2/$TARBALL
BUNDLE=

SLACKREQ='' # 
SLACKDESC="halibut: halibut $PKGVER (Document production system)  
halibut:  
halibut: Halibut is a documentation production system, with elements similar 
halibut: to TeX, debiandoc-sgml, TeXinfo, and others. It is primarily targeted 
halibut: at people producing software manuals.  
halibut: 
halibut: http://www.chiark.greenend.org.uk/~sgtatham/halibut/
halibut: 
halibut: 
halibut: 
halibut: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/halibut*
	
	# note: no parallel make
	make && make -C doc &&
	make prefix=/usr install &&
	mkdir -p /usr/share/doc/halibut/html /usr/share/info &&
	cp doc/halibut.pdf /usr/share/doc/halibut/manual.pdf &&
	cp doc/halibut.info /usr/share/info &&
	cp doc/*.html /usr/share/doc/halibut/html &&
	pkg_build_slackdesc
}
