3 changed files with 4 additions and 104 deletions
@ -1,63 +0,0 @@
|
||||
# Maintainer: Nathan Owens <ndowens@artixlinux.org> |
||||
# Contributor: Mikko Seppälä <t-r-a-y@mbnet.fi> |
||||
# Contributor: Kaos < gianlucaatlas dot gmail dot com > |
||||
|
||||
_pkgbasename=sqlite |
||||
pkgname=lib32-sqlite |
||||
_srcver=3390000 |
||||
pkgver=3.39.0 |
||||
pkgrel=1 |
||||
pkgdesc="A C library that implements an SQL database engine (32-bit)" |
||||
arch=('x86_64') |
||||
license=('custom') |
||||
url="https://www.sqlite.org/" |
||||
depends=(lib32-glibc $_pkgbasename) |
||||
makedepends=('tcl' 'lib32-readline') |
||||
source=(https://www.sqlite.org/2022/sqlite-src-${_srcver}.zip |
||||
sqlite3-amalgamation_configure.patch) |
||||
# upstream now switched to sha3sums - currently not supported by makepkg |
||||
sha256sums=('b3585f37dd106dbb3d46c8c17a2d275f9a4b87df8c4509bd2d6a5b40032426e6' |
||||
'6c5d360d9c6cee104977529cfb5004ca22093824bc5ba9a9741fe567597d3684') |
||||
|
||||
prepare() { |
||||
cd "$srcdir"/sqlite-src-$_srcver |
||||
|
||||
patch -Np1 -i ../sqlite3-amalgamation_configure.patch |
||||
autoreconf -vfi |
||||
} |
||||
|
||||
build() { |
||||
cd "$srcdir"/sqlite-src-$_srcver |
||||
|
||||
export CC="gcc -m32" |
||||
export CXX="g++ -m32" |
||||
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" |
||||
|
||||
export LTLINK_EXTRAS="-ldl" |
||||
export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 \ |
||||
-DSQLITE_ENABLE_COLUMN_METADATA=1 \ |
||||
-DSQLITE_ENABLE_UNLOCK_NOTIFY \ |
||||
-DSQLITE_ENABLE_DBSTAT_VTAB=1 \ |
||||
-DSQLITE_ENABLE_FTS3_TOKENIZER=1 \ |
||||
-DSQLITE_ENABLE_RTREE=1 \ |
||||
-DSQLITE_SECURE_DELETE \ |
||||
-DSQLITE_MAX_VARIABLE_NUMBER=250000 \ |
||||
-DSQLITE_MAX_EXPR_DEPTH=10000" |
||||
|
||||
./configure --prefix=/usr \ |
||||
--libdir=/usr/lib32 \ |
||||
--disable-tcl \ |
||||
--disable-static |
||||
|
||||
make |
||||
} |
||||
|
||||
package() { |
||||
cd "$srcdir"/sqlite-src-$_srcver |
||||
|
||||
make DESTDIR="${pkgdir}" install |
||||
|
||||
rm -rf "${pkgdir}"/usr/{include,share,bin} |
||||
mkdir -p "${pkgdir}"/usr/share/licenses |
||||
ln -s $_pkgbasename "${pkgdir}"/usr/share/licenses/$pkgname |
||||
} |
@ -1,37 +0,0 @@
|
||||
--- sqlite-src-3370000/configure.ac.orig 2021-11-27 16:05:17.000000000 +0100
|
||||
+++ sqlite-src-3370000/configure.ac 2021-12-03 21:21:47.506868981 +0100
|
||||
@@ -116,6 +116,13 @@
|
||||
USE_AMALGAMATION=1
|
||||
|
||||
#########
|
||||
+# By default, amalgamation sqlite3.c will have #line directives.
|
||||
+# This is a build option not shown by ./configure --help
|
||||
+# To control it, use configure option: amalgamation_line_macros=?
|
||||
+# where ? is no to suppress #line directives or yes to create them.
|
||||
+AMALGAMATION_LINE_MACROS=--linemacros=0
|
||||
+
|
||||
+#########
|
||||
# See whether we can run specific tclsh versions known to work well;
|
||||
# if not, then we fall back to plain tclsh.
|
||||
# TODO: try other versions before falling back?
|
||||
@@ -574,6 +581,20 @@
|
||||
fi
|
||||
AC_SUBST(USE_AMALGAMATION)
|
||||
|
||||
+########
|
||||
+# See whether --disable
|
||||
+if test "${amalgamation_line_macros+set}" = set; then :
|
||||
+ enableval=$amalgamation_line_macros;
|
||||
+fi
|
||||
+
|
||||
+if test "${amalgamation_line_macros}" = "yes" ; then
|
||||
+ AMALGAMATION_LINE_MACROS=--linemacros=1
|
||||
+fi
|
||||
+if test "${amalgamation_line_macros}" = "no" ; then
|
||||
+ AMALGAMATION_LINE_MACROS=--linemacros=0
|
||||
+fi
|
||||
+AC_SUBST(AMALGAMATION_LINE_MACROS)
|
||||
+
|
||||
#########
|
||||
# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
|
||||
AC_CHECK_HEADERS(zlib.h)
|
Loading…
Reference in new issue