NAME=sqlite
VERSION=3.3.17
SOURCE=http://www.sqlite.org/sqlite-$VERSION.tar.gz
BUILD=${BUILD:-1}
OPTIMIZE=${OPTIMIZE:-"-O3 -pipe"}

build() {
	_explode 0

	cd sqlite-$VERSION
	_configure \
		--disable-static \
		--disable-debug \
		--enable-threadsafe \
		--enable-cross-thread-connections \
		--disable-releasemode \
		--enable-tempstore=always
	make -j$MAKEJOBS
	make DESTDIR="$PKG" install

	# There are no docs in the source package which we would like to
	# put into the binary package.

	_chfix
	_chgrp_bin
}
