# Maintainer: Carlo Landmeter # Contributor: Ɓukasz Jendrysik pkgname=sqlite-tcl pkgver=3.42.0 pkgrel=0 pkgdesc="Sqlite Tcl Extension Architecture (TEA)" url="https://www.sqlite.org/" arch="all" license="blessing" makedepends="readline-dev tcl-dev sqlite-dev libtool autoconf automake" subpackages="$pkgname-doc" options="!check" # no testsuite from upstream # compute _ver _a=${pkgver%%.*} _b=${pkgver#"$_a".} _b=${_b%%.*} _c=${pkgver#"$_a"."$_b".} _c=${_c%%.*} case $pkgver in *.*.*.*)_d=${pkgver##*.};; *.*.*) _d=0;; esac [ $_b -lt 10 ] && _b=0$_b [ $_c -lt 10 ] && _c=0$_c [ $_d -lt 10 ] && _d=0$_d _ver=${_a}${_b}${_c}$_d # these variables depend on _ver being set source="https://www.sqlite.org/2023/sqlite-autoconf-$_ver.tar.gz" builddir="$srcdir/sqlite-autoconf-$_ver/tea" prepare() { default_prepare if [ -f "$startdir"/../sqlite/APKBUILD ]; then ( _tclver=$pkgver . "$startdir"/../sqlite/APKBUILD if [ "$_tclver" != "$pkgver" ]; then die "sqlite version mismatch ($_tclver != $pkgver)" fi ) fi } build() { ./configure \ --build="$CBUILD" \ --host="$CHOST" \ --prefix=/usr \ --with-system-sqlite \ --enable-threads make } check() { make check } package() { make DESTDIR="$pkgdir" install install -Dm644 license.terms \ "$pkgdir"/usr/share/licenses/$pkgname/license.terms } sha512sums=" f54a8993433b4787dde99b11754f26cb525389446f12c78100b47ed342933385c819621c5384387aec7be68aed92d729acb1e5391d3c786f4f9cf1c767a743bd sqlite-autoconf-3420000.tar.gz "