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

# source: james
TARBALL=ht-$PKGVER.tar.gz
MD5SUM=9af185dfdc46e8b48c91fe1eae449ad1
SRC_URL=https://github.com/sebastianbiallas/ht/archive/e9e63373148da5d7df397d8075740d8c096ecb1d.tar.gz
BUNDLE=

SLACKREQ=
SLACKDESC="ht: ht $PKGVER (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
}


