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

# james
TARBALL=exdupe-050-source.zip
MD5SUM=73eba33727dd4a75aa98b1aa67e8a1a1
SRC_URL=http://www.quicklz.com/exdupe/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="exdupe: exdupe $PKGVER (Backup with deduplication)
exdupe: 
exdupe: eXdupe is backup tool that performs data deduplication at 1 gigabyte 
exdupe: per second (3.6 terabyte per hour) on 8 cores.
exdupe: 
exdupe: http://www.quicklz.com/exdupe/
exdupe: 
exdupe: 
exdupe: 
exdupe: 
exdupe:
"

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 ...
		unzip $SRC_DIR/$TARBALL -d tmp/exdupe
	else
		return 1
	fi
}

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


