summaryrefslogtreecommitdiff
path: root/system/sqlite
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-08 05:01:42 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-08 05:01:42 +0000
commit19771a1902cde6b51065c9a6b56bc90df339f4a7 (patch)
treedc6d17ff2ff3269c51750e37a39cc9d763d041a9 /system/sqlite
parentd40ddfa4cc784f8719c48c11e73a71362db76039 (diff)
downloadpackages-19771a1902cde6b51065c9a6b56bc90df339f4a7.tar.gz
packages-19771a1902cde6b51065c9a6b56bc90df339f4a7.tar.bz2
packages-19771a1902cde6b51065c9a6b56bc90df339f4a7.tar.xz
packages-19771a1902cde6b51065c9a6b56bc90df339f4a7.zip
system/sqlite: bump to 3.27.2, modernise
Diffstat (limited to 'system/sqlite')
-rw-r--r--system/sqlite/APKBUILD35
1 files changed, 8 insertions, 27 deletions
diff --git a/system/sqlite/APKBUILD b/system/sqlite/APKBUILD
index f363490d0..d103b1a5d 100644
--- a/system/sqlite/APKBUILD
+++ b/system/sqlite/APKBUILD
@@ -1,22 +1,7 @@
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=sqlite
-pkgver=3.26.0
-_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}
-
+pkgver=3.27.2
pkgrel=0
pkgdesc="C library that implements an SQL database engine"
url="https://sqlite.org/"
@@ -24,11 +9,14 @@ arch="all"
license="Public-Domain"
depends=""
makedepends="libedit-dev"
-source="https://sqlite.org/2018/$pkgname-autoconf-$_ver.tar.gz
+source="https://sqlite.org/2019/$pkgname-autoconf-3270200.tar.gz
license.txt"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
-_amalgamation="-DSQLITE_ENABLE_FTS4 \
+builddir="$srcdir/$pkgname-autoconf-3270200"
+
+build() {
+ local _amalgamation="-DSQLITE_ENABLE_FTS4 \
-DSQLITE_ENABLE_FTS3 \
-DSQLITE_ENABLE_FTS3_PARENTHESIS \
-DSQLITE_ENABLE_FTS5 \
@@ -40,10 +28,6 @@ _amalgamation="-DSQLITE_ENABLE_FTS4 \
-DSQLITE_ENABLE_DBSTAT_VTAB \
-DSQLITE_MAX_VARIABLE_NUMBER=250000 \
-DSQLITE_ENABLE_JSON1"
-
-builddir="$srcdir/$pkgname-autoconf-$_ver"
-build() {
- cd "$builddir"
export CFLAGS="$CFLAGS $_amalgamation"
./configure \
--build=$CBUILD \
@@ -62,12 +46,10 @@ build() {
}
check() {
- cd "$builddir"
make check
}
package() {
- cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
install -Dm0644 sqlite3.1 \
"$pkgdir"/usr/share/man/man1/sqlite3.1
@@ -76,11 +58,10 @@ package() {
}
libs() {
- replaces="sqlite"
- pkgdesc="Sqlite3 library"
+ pkgdesc="SQLite embeddable library"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
}
-sha512sums="8c3306b3814a0e9bc69b741f62bdb6efc9f1e07163ca3e3a1581994465de163a7924223522e812d6b3663c1525c7012a6f6d73ad333556eba9f97ce9326fbdb8 sqlite-autoconf-3260000.tar.gz
+sha512sums="0ac2515c7816932a4f725e657122c9f202bd7aba637bad9af5b4592b85efdd10a55ad34ac621b60a7aea91b1021c2ef0924c6ddfe05b2edb4f70e3d34b005972 sqlite-autoconf-3270200.tar.gz
5bde14bec5bf18cc686b8b90a8b2324c8c6600bca1ae56431a795bb34b8b5ae85527143f3b5f0c845c776bce60eaa537624104cefc3a47b3820d43083f40c6e9 license.txt"