revert Update package version to 5.5.0
This commit is contained in:
2025-12-28 13:46:43 +00:00
parent 91ce3613d7
commit f650bb1f4d
5 changed files with 98 additions and 64 deletions
+11 -6
View File
@@ -2,20 +2,25 @@
# 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://www.lua.org/ftp/lua-${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for putting downloaded files to the correct location or applying patches
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE"
# Patch for compiling a shared library
patch -Np1 -i "$BPM_WORKDIR"/liblua.patch
# Create lua pkgconfig file
sed -e "s/%V/${BPM_PKG_VERSION%.*}/" -e "s/%R/${BPM_PKG_VERSION}/" "$BPM_WORKDIR"/lua.pc.in > lua.pc
patch -Np1 -i ../lua-shared-library.patch # Patch from BLFS
mv ../lua.pc ./lua.pc
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
make MYCFLAGS="$CFLAGS -fPIC" MYLDFALGS="$LDFLAGS" linux
make linux
}
# The check function is executed in the source directory