Skip to content

Commit

Permalink
Bump SQLite to the latest version
Browse files Browse the repository at this point in the history
Cleanup recipe as we do it.
  • Loading branch information
ktf committed Jan 6, 2025
1 parent 7ff58aa commit bd15de5
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions sqlite.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package: sqlite
version: "%(tag_basename)s"
tag: "v3.15.0"
source: https://github.com/alisw/sqlite
version: "v3.47.2"
tag: "version-3.47.2"
source: https://github.com/sqlite/sqlite
prefer_system: (?!slc5)
prefer_system_check: |
printf '#include <sqlite3.h>\nint main(){}\n' | cc -xc - -lsqlite3 -o /dev/null;
Expand All @@ -10,6 +10,7 @@ build_requires:
- curl
- "autotools:(slc6|slc7)"
- "GCC-Toolchain:(?!osx)"
- alibuild-recipe-tools
---
#!/bin/bash -ex
rsync -av $SOURCEDIR/ ./
Expand All @@ -24,19 +25,4 @@ rm -rf $INSTALLROOT/share
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
cat > "$MODULEFILE" <<EoF
#%Module1.0
proc ModulesHelp { } {
global version
puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
}
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
# Dependencies
module load BASE/1.0
# Our environment
set SQLITE_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
setenv SQLITE_ROOT \$SQLITE_ROOT
prepend-path PATH \$SQLITE_ROOT/bin
prepend-path LD_LIBRARY_PATH \$SQLITE_ROOT/lib
EoF
alibuild-generate-module --lib --bin > "$MODULEFILE"

0 comments on commit bd15de5

Please sign in to comment.