diff --git a/srcpkgs/sqlite-replication-devel b/srcpkgs/sqlite-replication-devel new file mode 120000 index 00000000000..33558ee2d69 --- /dev/null +++ b/srcpkgs/sqlite-replication-devel @@ -0,0 +1 @@ +sqlite-replication \ No newline at end of file diff --git a/srcpkgs/sqlite-replication/template b/srcpkgs/sqlite-replication/template new file mode 100644 index 00000000000..285a439757d --- /dev/null +++ b/srcpkgs/sqlite-replication/template @@ -0,0 +1,46 @@ +# 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 " +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" + } +}