Browse Source

[multilib-testing] -> [multilib] 'lib32-sqlite-3.39.0-1' move

master
Nathan Owens 1 month ago
parent
commit
1863f82343
Signed by: ndowens
GPG Key ID: DC5A6F8092641E2D
  1. 63
      lib32-sqlite/x86_64/multilib-testing/PKGBUILD
  2. 37
      lib32-sqlite/x86_64/multilib-testing/sqlite3-amalgamation_configure.patch
  3. 8
      lib32-sqlite/x86_64/multilib/PKGBUILD

63
lib32-sqlite/x86_64/multilib-testing/PKGBUILD

@ -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
}

37
lib32-sqlite/x86_64/multilib-testing/sqlite3-amalgamation_configure.patch

@ -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)

8
lib32-sqlite/x86_64/multilib/PKGBUILD

@ -1,11 +1,11 @@
# Maintainer: Biru Ionut <ionut@archlinux.ro>
# 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=3380500
pkgver=3.38.5
_srcver=3390000
pkgver=3.39.0
pkgrel=1
pkgdesc="A C library that implements an SQL database engine (32-bit)"
arch=('x86_64')
@ -16,7 +16,7 @@ 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=('6503bb59e39ec8663083696940ec818cd5555196e6ca543d4029440cca7b00d9'
sha256sums=('b3585f37dd106dbb3d46c8c17a2d275f9a4b87df8c4509bd2d6a5b40032426e6'
'6c5d360d9c6cee104977529cfb5004ca22093824bc5ba9a9741fe567597d3684')
prepare() {

Loading…
Cancel
Save