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

# source: james
TARBALL=jq-20180830.tar.bz2
MD5SUM=7a1ace8aaa4063682a108686b4b1e732
#SRC_URL=https://github.com/stedolan/jq/releases/download/jq-$PKGVER/$TARBALL
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='' # 
SLACKDESC="jq: jq $PKGVER (JSON command-line processor)  
jq:  
jq: jq is a lightweight and flexible command-line JSON processor. jq is like 
jq: sed for JSON data – you can use it to slice and filter and map and 
jq: transform structured data with the same ease that sed, awk, grep and 
jq: friends let you play with text.  
jq: 
jq: http://stedolan.github.io/jq/
jq: 
jq: 
jq: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/jq* &&
	patch -Np1 -i ../pkg/math-bug-fix.patch
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/jq* &&
	autoreconf -fi &&
	pkg_build_autoconf &&
	pkg_build_slackdesc
}
