44 lines
1.5 KiB
Bash
44 lines
1.5 KiB
Bash
# Template file for 'sqlite-replication'
|
|
pkgname=sqlite-replication
|
|
version=3.29.0
|
|
revision=2
|
|
wrksrc="sqlite-version-${version}-replication3"
|
|
build_style=gnu-configure
|
|
configure_args="--enable-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=516ae04b7bef44b6de71fed99f41f1f11afc781495145c7bccf3c1e1073c37be
|
|
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() {
|
|
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"
|
|
}
|
|
}
|