47 lines
1.6 KiB
Bash
47 lines
1.6 KiB
Bash
# Template file for 'sqlite-replication'
|
|
pkgname=sqlite-replication
|
|
version=3.27.1
|
|
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=0d92cab3c07f20064af4fa11b360e9871206766486618dd66a672c02c05cac36
|
|
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-02-11T16:47:35\n" > manifest
|
|
printf -- "cf1adb3235ffa52c5b7baa911d5a27e352923e2f" > 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"
|
|
}
|
|
}
|