void-packages/srcpkgs/sqlite-replication/template

47 lines
1.6 KiB
Bash

# Template file for 'sqlite-replication'
pkgname=sqlite-replication
version=3.26.0
revision=1
wrksrc="sqlite-version-${version}-replication3"
build_style=gnu-configure
configure_args="--enable-wal-replication --enable-threadsafe --enable-dynamic-extensions --enable-fts5"
hostmakedepends="tcl"
makedepends="libedit-devel"
short_desc="Replication Enabled SQL Database Engine in a C Library"
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
license="Public Domain"
homepage="https://github.com/CanonicalLtd/sqlite"
distfiles="${homepage}/archive/version-${version}+replication3.tar.gz"
checksum=9a2a636cdf947f130ea5e94b9eadfa6bf6f815eb2bc21a8e9dcf4a170e30876b
replaces="sqlite>=3.8.11.1_3"
provides="sqlite-${version}_${revision}"
shlib_provides="libsqlite3.so"
CFLAGS+="-DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_COLUMN_METADATA \
-DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_JSON1 \
-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 \
-DSQLITE_ENABLE_FTS3_TOKENIZER=1 -DSQLITE_ENABLE_BATCH_ATOMIC_WRITE=1"
# explicitly enable fdatasync
CFLAGS+=" -DHAVE_FDATASYNC"
disable_parallel_build=yes
pre_configure() {
printf -- "D 2018-12-04T22:36:52\n" > manifest
printf -- "7948136cce4b08f6e35d02b623ffe174cad32146" > manifest.uuid
sed -i -e 's/ -ltinfo//g' configure
}
sqlite-replication-devel_package() {
depends="sqlite-replication>=${version}_${revision}"
replaces="sqlite-devel>=0"
provides="sqlite-devel-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}