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

# source: james
TARBALL=mupdf-$PKGVER-source.tar.gz
MD5SUM=3205256d78d8524d67dd2a47c7a345fa
SRC_URL=http://www.mupdf.com/downloads/$TARBALL
BUNDLE=

SLACKREQ='libpng' # 
SLACKDESC="jbig2dec-mupdf: jbig2dec-mupdf $PKGVER (JBIG2 decoder)  
jbig2dec-mupdf:  
jbig2dec-mupdf: jbig2dec is a decoder implementation of the JBIG2 image 
jbig2dec-mupdf: compression format. This is a decoder only implementation. 
jbig2dec-mupdf: This version of jbig2kit comes from mupdf bundle, this its 
jbig2dec-mupdf: name.  
jbig2dec-mupdf: 
jbig2dec-mupdf: 
jbig2dec-mupdf: 
jbig2dec-mupdf: 
jbig2dec-mupdf: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/mupdf*/thirdparty/jbig2dec
	./autogen.sh $CONFFLAGS --disable-static &&
	make $MAKEFLAGS && make install &&
	pkg_build_slackdesc
}
