# Template file for 'sqlcipher'
pkgname=sqlcipher
version=4.6.1
revision=1
build_style=gnu-configure
configure_args="--enable-tempstore=yes"
hostmakedepends="tcl"
makedepends="openssl-devel readline-devel"
short_desc="SQLite extension that provides transparent 256-bit AES encryption"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://www.zetetic.net/sqlcipher/"
changelog="https://raw.githubusercontent.com/sqlcipher/sqlcipher/v${version}/CHANGELOG.md"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=d8f9afcbc2f4b55e316ca4ada4425daf3d0b4aab25f45e11a802ae422b9f53a3

CFLAGS="-DSQLITE_HAS_CODEC"

post_install() {
	vlicense LICENSE.md
}

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
	}
}
