diff --git a/pkg.info b/pkg.info index 75379f3..1ee9581 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: sqlite description: C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine -version: 3.51.0 +version: 3.51.1 revision: 1 url: https://www.sqlite.org/ license: Public Domain @@ -12,3 +12,4 @@ depends: - zlib make_depends: - tcl + - wget diff --git a/source.sh b/source.sh index 0fc7f6e..230d971 100644 --- a/source.sh +++ b/source.sh @@ -2,14 +2,12 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://sqlite.org/2024/sqlite-autoconf-3450100.tar.gz" -FILENAME="${DOWNLOAD##*/}" - # The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location +# This function is used for putting downloaded files to the correct location or applying patches prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" + local version=$(printf "%d%02d%02d00\n" ${BPM_PKG_VERSION//./ }) + wget https://sqlite.org/2025/sqlite-autoconf-${version}.tar.gz + tar -xvf sqlite-autoconf-${version}.tar.gz --strip-components=1 -C "$BPM_SOURCE" } # The build function is executed in the source directory