47 lines
1.6 KiB
Bash
47 lines
1.6 KiB
Bash
# Template file for 'sqlite-replication'
|
|
pkgname=sqlite-replication
|
|
version=3.27.2
|
|
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=bb36b4e998df397778353a192c8be0e5b5e30264b541584202abb698179614a0
|
|
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 2019-03-09T15:45:46\n" > manifest
|
|
printf -- "8250984a368079bb1838d48d99f8c1a6282e00bc" > 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"
|
|
}
|
|
}
|