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

# source: james
TARBALL=lz4-$PKGVER.tar.gz
MD5SUM=42b09fab42331da9d3fb33bd5c560de9
SRC_URL=https://github.com/Cyan4973/lz4/archive/r131.tar.gz
BUNDLE=

SLACKREQ=''
SLACKDESC="liblz4: liblz4 $PKGVER (Fast compression program)
liblz4: 
liblz4: LZ4 is lossless compression algorithm, providing compression speed at 
liblz4: 400 MB/s per core, scalable with multi-cores CPU. It also features an 
liblz4: extremely fast decoder, with speed in multiple GB/s per core, 
liblz4: typically reaching RAM speed limits on multi-core systems.
liblz4: 
liblz4: https://github.com/Cyan4973/lz4
liblz4: 
liblz4: 
liblz4: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/lz4*
	export CFLAGS="$CFLAGS -fPIC"
	MAKEFLAGS="$MAKEFLAGS PREFIX=/usr LIBDIR=/usr/$LIBDIR"
	make $MAKEFLAGS && make $MAKEFLAGS install &&
	rm -rf /usr/$LIBDIR/liblz4.so* # don't want the static library
	pkg_build_slackdesc
}

