# Template file for 'sqlcipher'
pkgname=sqlcipher
version=3.4.1
revision=1
build_style=gnu-configure
configure_args="--enable-tempstore=yes"
hostmakedepends="tcl"
makedepends="libressl-devel readline-devel"
short_desc="SQLite extension that provides transparent 256-bit AES encryption"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="3-clause-BSD"
homepage="https://www.zetetic.net/sqlcipher/"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=4172cc6e5a79d36e178d36bd5cc467a938e08368952659bcd95eccbaf0fa4ad4
CFLAGS="-DSQLITE_HAS_CODEC"

post_install() {
	vlicense LICENSE
}

sqlcipher-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.a
		vmove usr/lib/*.so
		vmove usr/lib/pkgconfig
	}
}

