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

# 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
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share etc
}

### build
pkg_build() {
	export LIBDIR=lib CC="gcc ${BUILD32}" CFLAGS="$CFLAGS -fPIC"
	cd /tmp/lz4*
	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
}

