aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2020-10-04 15:35:49 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2020-10-04 15:40:18 +0000
commit688fe681164f13515b352319fef77ee8a9ffb5e5 (patch)
treee2a9d5d0c114e2d8fd0a97a63a8f8ca7a245fb43
parent03dc6c14f38b737a13a953f533df16f0cbf78004 (diff)
downloadaports-688fe681164f13515b352319fef77ee8a9ffb5e5.tar.gz
aports-688fe681164f13515b352319fef77ee8a9ffb5e5.tar.bz2
aports-688fe681164f13515b352319fef77ee8a9ffb5e5.tar.xz
testing/sqlite-replication: new aport
-rw-r--r--testing/sqlite-replication/APKBUILD42
-rw-r--r--testing/sqlite-replication/remove-failing-test.patch13
2 files changed, 55 insertions, 0 deletions
diff --git a/testing/sqlite-replication/APKBUILD b/testing/sqlite-replication/APKBUILD
new file mode 100644
index 0000000000..bb9960cd55
--- /dev/null
+++ b/testing/sqlite-replication/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=sqlite-replication
+pkgver=3.32.3.4
+_pkgver="${pkgver%.*}"
+_replication="${pkgver##*.}"
+pkgrel=0
+pkgdesc="Replication Enabled SQL Database Engine in a C Library"
+url="https://github.com/canonical/sqlite"
+arch="all"
+license="custom"
+depends="readline zlib"
+makedepends="tcl-dev sqlite-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/canonical/sqlite/archive/version-${_pkgver}+replication${_replication}.tar.gz
+ remove-failing-test.patch"
+builddir="$srcdir/sqlite-version-${_pkgver}-replication${_replication}"
+
+build() {
+ ./configure --prefix=/usr \
+ --libdir=/usr/lib/$pkgname \
+ --includedir=/usr/include/$pkgname \
+ --enable-static=no \
+ --enable-all \
+ --enable-replication
+ make
+ make showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
+}
+
+check() {
+ make test
+}
+
+package() {
+ make DESTDIR=$pkgdir install
+ install -D -m644 LICENSE.md "${pkgdir}/usr/share/licenses/license.txt"
+ rm -rf "$pkgdir/usr/bin"
+ rm -rf "$pkgdir/usr/lib/tcl"*
+}
+
+sha512sums="b66e73365271720802afdae9051f4d4fb58aa464240f9f293b46564ed792025fff1373613f3430e970ea6e56eed33b7ff1e5fbcfdd8990e5719d6143a2a966bd version-3.32.3+replication4.tar.gz
+e6a5a48d0fe9c2d35fefdccd6d153e35e3221121ed95e682d6e3f64af512c4f1901ab3f84d304c7e0180723f7250a5a9b78f3019474b00dfaa47253f17235179 remove-failing-test.patch"
diff --git a/testing/sqlite-replication/remove-failing-test.patch b/testing/sqlite-replication/remove-failing-test.patch
new file mode 100644
index 0000000000..2f4ef2f212
--- /dev/null
+++ b/testing/sqlite-replication/remove-failing-test.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.in b/Makefile.in
+index 24537ea..3d839b8 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -1272,7 +1272,7 @@ quicktest: ./testfixture$(TEXE)
+ # This is the common case. Run many tests that do not take too long,
+ # including fuzzcheck, sqlite3_analyzer, and sqldiff tests.
+ #
+-test: fuzztest sourcetest $(TESTPROGS) tcltest
++test: sourcetest $(TESTPROGS) tcltest
+
+ # Run a test using valgrind. This can take a really long time
+ # because valgrind is so much slower than a native machine.