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

# james
TARBALL=qzip.tar
MD5SUM=4f9786f5cbd02f469d75cc48cb2ec841
SRC_URL=http://www.quicklz.com/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="qzip: qzip $PKGVER (File Compressor)
qzip: 
qzip: qzip / qcat is a compressor by Daniel Eisner which is command line 
qzip: compatible (not data compatible) with gzip / gzcat.
qzip: 
qzip: http://www.quicklz.com/
qzip: 
qzip: 
qzip: 
qzip: 
qzip: 
"

pkg_download() {
	echo downloading $2
	wget --user-agent="Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" \
		-O $1/$2 "$SRC_URL" # we need to fake a browser to make the website happy
}

pkg_prepare() {
	if pkg_check $SRC_DIR $TARBALL $MD5SUM; then
		echo extracting $TARBALL ...
		mkdir tmp/qzip &&
		tar -xf $SRC_DIR/$TARBALL -C tmp/qzip
	else
		return 1
	fi
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/qzip*
	make qcat qzip qunzip &&
	install -m755 qcat qzip qunzip /usr/bin &&
	pkg_build_slackdesc
}


