mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
sqlite: update to 3.45.3.
This commit is contained in:
parent
4e1f615303
commit
e32a58b199
6 changed files with 42 additions and 37 deletions
1
srcpkgs/sqlite-lemon
Symbolic link
1
srcpkgs/sqlite-lemon
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
sqlite
|
|
@ -1,29 +0,0 @@
|
||||||
# Template file for 'sqlite-lemon'
|
|
||||||
pkgname=sqlite-lemon
|
|
||||||
version=3.45.0
|
|
||||||
revision=1
|
|
||||||
short_desc="LALR(1) Parser Generator"
|
|
||||||
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|
||||||
license="Public Domain"
|
|
||||||
homepage="https://sqlite.org/lemon.html"
|
|
||||||
distfiles="https://raw.githubusercontent.com/sqlite/sqlite/version-${version}/tool/lemon.c
|
|
||||||
https://raw.githubusercontent.com/sqlite/sqlite/version-${version}/tool/lempar.c"
|
|
||||||
checksum="8a7d39a6d55cef0e6769f869a09d1269e3aca366c44291e1445bb877e5e94b00
|
|
||||||
4cfe425b513895dd11af7d3cde963920a2daeb7f5731f706e6973bfc79f207ed"
|
|
||||||
|
|
||||||
skip_extraction="lemon.c lempar.c"
|
|
||||||
|
|
||||||
do_extract() {
|
|
||||||
vsrccopy $skip_extraction .
|
|
||||||
vsed -i -e 's,"lempar.c","/usr/share/lemon/lempar.c",' lemon.c
|
|
||||||
}
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
echo $CC $CFLAGS $LDFLAGS -o lemon lemon.c
|
|
||||||
$CC $CFLAGS $LDFLAGS -o lemon lemon.c
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
vbin lemon
|
|
||||||
vinstall lempar.c 644 usr/share/lemon
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
pattern='>Version \K[\d.]+'
|
|
1
srcpkgs/sqlite-tcl
Symbolic link
1
srcpkgs/sqlite-tcl
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
sqlite
|
1
srcpkgs/sqlite-tools
Symbolic link
1
srcpkgs/sqlite-tools
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
sqlite
|
|
@ -1,18 +1,20 @@
|
||||||
# Template file for 'sqlite'
|
# Template file for 'sqlite'
|
||||||
pkgname=sqlite
|
pkgname=sqlite
|
||||||
version=3.45.2
|
version=3.45.3
|
||||||
revision=1
|
revision=1
|
||||||
_amalgamationver=$(printf "%d%02d%02d00\n" ${version//./ })
|
_amalgamationver=$(printf "%d%02d%02d00\n" ${version//./ })
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-threadsafe --enable-dynamic-extensions --enable-fts5"
|
configure_args="--enable-threadsafe --enable-dynamic-extensions --enable-fts5
|
||||||
makedepends="libedit-devel zlib-devel"
|
--with-tcl=$XBPS_CROSS_BASE/usr/lib"
|
||||||
|
hostmakedepends="tcl"
|
||||||
|
makedepends="libedit-devel zlib-devel tcl-devel"
|
||||||
short_desc="SQL Database Engine in a C Library"
|
short_desc="SQL Database Engine in a C Library"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="Public Domain"
|
license="Public Domain"
|
||||||
homepage="https://sqlite.org/"
|
homepage="https://sqlite.org/"
|
||||||
changelog="https://www.sqlite.org/changes.html"
|
changelog="https://www.sqlite.org/changes.html"
|
||||||
distfiles="https://sqlite.org/2024/sqlite-autoconf-${_amalgamationver}.tar.gz"
|
distfiles="https://sqlite.org/2024/sqlite-src-${_amalgamationver}.zip"
|
||||||
checksum=bc9067442eedf3dd39989b5c5cfbfff37ae66cc9c99274e0c3052dc4d4a8f6ae
|
checksum=ec0c959e42cb5f1804135d0555f8ea32be6ff2048eb181bccd367c8f53f185d1
|
||||||
|
|
||||||
CFLAGS="-DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_COLUMN_METADATA \
|
CFLAGS="-DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_COLUMN_METADATA \
|
||||||
-DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE \
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE \
|
||||||
|
@ -29,8 +31,13 @@ case "$XBPS_TARGET_ENDIAN" in
|
||||||
be) CFLAGS+=" -DSHA3_BYTEORDER=4321 -DSQLITE_BYTEORDER=4321";;
|
be) CFLAGS+=" -DSHA3_BYTEORDER=4321 -DSQLITE_BYTEORDER=4321";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
pre_configure() {
|
|
||||||
vsed -i -e 's/ -ltinfo//g' configure
|
_tools="showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer"
|
||||||
|
post_build() {
|
||||||
|
make $_tools
|
||||||
|
cd tool
|
||||||
|
echo $CC $CFLAGS $LDFLAGS -o lemon lemon.c
|
||||||
|
$CC $CFLAGS $LDFLAGS -o lemon lemon.c
|
||||||
}
|
}
|
||||||
|
|
||||||
sqlite-devel_package() {
|
sqlite-devel_package() {
|
||||||
|
@ -43,3 +50,28 @@ sqlite-devel_package() {
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sqlite-lemon_package() {
|
||||||
|
short_desc="LALR(1) Parser Generator from sqlite"
|
||||||
|
pkg_install() {
|
||||||
|
vbin tool/lemon
|
||||||
|
vinstall tool/lempar.c 644 usr/share/lemon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sqlite-tools_package() {
|
||||||
|
short_desc+=" - tools"
|
||||||
|
pkg_install() {
|
||||||
|
local t
|
||||||
|
for t in $_tools; do
|
||||||
|
vbin $t
|
||||||
|
done
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sqlite-tcl_package() {
|
||||||
|
short_desc+=" - tcl bindings"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/tcl*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue