1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/sqlite-replication/APKBUILD
Francesco Colista dccd37ae5b testing/sqlite-replication: disable test on x86
Test on x86 segfaults with this error:

Time: cachespill.test 21 ms
Time: capi2.test 26 ms
make: *** [Makefile:1265: tcltest] Segmentation fault (core dumped)

Disabling test for now.
2020-10-05 06:31:30 +00:00

44 lines
1.4 KiB
Text

# 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() {
if ! [ $CARCH = "x86" ]; then
make test
fi
}
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"