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

# source: james
TARBALL=ht-20161206.tar.bz2
MD5SUM=3c07a53c32f15bdec3a3148d11035dc9
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC='ht: ht 2.1.0 (Executable file editor)  
ht:  
ht: HT is a file editor/viewer/analyzer for executables. The goal is to 
ht: combine the low-level functionality of a debugger and the usability of 
ht: IDEs. We plan to implement all (hex-)editing features and support of the 
ht: most important file formats.  
ht: 
ht: http://hte.sourceforge.net/ 
ht: https://github.com/sebastianbiallas/ht
ht: 
ht: 
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/ht* &&
	./autogen.sh &&
	./configure $CONFFLAGS --with-included-lzo &&
	make $MAKEFLAGS          # this will fail because of circular dependency
	make htdoc.h &&          # 
	make && make install &&  # parallel build doesn't seem to work well

	# install docs
	mkdir -p /usr/share/doc/ht /usr/share/info &&
	install -m644 doc/ht.html /usr/share/doc/ht &&
	install -m644 doc/README /usr/share/doc/ht &&
	install -m644 doc/ht.info /usr/share/info &&
	
	pkg_build_slackdesc
}


