Rebuild with lua 5.5

This commit is contained in:
2026-01-18 10:29:50 +02:00
parent a8cca6b1e0
commit 0edb4146e7
2 changed files with 23 additions and 8 deletions
+7 -3
View File
@@ -1,16 +1,17 @@
name: lua-lpeg name: lua-lpeg
description: Parsing Expression Grammars For Lua description: Parsing Expression Grammars For Lua
version: 1.1.0 version: 1.1.0
revision: 1 revision: 2
url: https://www.inf.puc-rio.br/~roberto/lpeg/ url: https://www.inf.puc-rio.br/~roberto/lpeg/
license: MIT license: MIT
architecture: any architecture: any
type: source type: source
make_depends: make_depends:
- lua - lua
- lua5.1 - lua5.4
- lua5.2
- lua5.3 - lua5.3
- lua5.2
- lua5.1
downloads: downloads:
- url: https://www.inf.puc-rio.br/~roberto/lpeg/lpeg-${BPM_PKG_VERSION}.tar.gz - url: https://www.inf.puc-rio.br/~roberto/lpeg/lpeg-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}/lua5.4 extract_to: ${BPM_SOURCE}/lua5.4
@@ -20,6 +21,9 @@ split_packages:
- name: lua-lpeg - name: lua-lpeg
depends: depends:
- lua - lua
- name: lua5.4-lpeg
depends:
- lua5.4
- name: lua5.3-lpeg - name: lua5.3-lpeg
depends: depends:
- lua5.3 - lua5.3
+16 -5
View File
@@ -6,19 +6,19 @@
# This function is used for putting downloaded files to the correct location or applying patches # This function is used for putting downloaded files to the correct location or applying patches
prepare() { prepare() {
cd "$BPM_SOURCE" cd "$BPM_SOURCE"
for ver in 5.3 5.2 5.1; do for ver in 5.5 5.4 5.3 5.2 5.1; do
cp -a lua5.4 lua$ver [ -d lua$ver ] || cp -a lua5.4 lua$ver
done done
} }
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
pushd lua5.4 pushd lua5.5
make DLLFLAGS="-I/usr/include -fPIC" LUADIR="/usr/include" make DLLFLAGS="-I/usr/include -fPIC" LUADIR="/usr/include"
popd popd
for ver in 5.3 5.2 5.1; do for ver in 5.4 5.3 5.2 5.1; do
pushd lua$ver pushd lua$ver
make DLLFLAGS="-I/usr/include/lua${ver} -fPIC" LUADIR="/usr/include/lua${ver}" make DLLFLAGS="-I/usr/include/lua${ver} -fPIC" LUADIR="/usr/include/lua${ver}"
popd popd
@@ -28,6 +28,17 @@ build() {
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package_lua-lpeg() { package_lua-lpeg() {
install -Dm755 lua5.5/lpeg.so -t "$BPM_OUTPUT"/usr/lib/lua/5.5
install -Dm644 lua5.5/re.lua -t "$BPM_OUTPUT"/usr/share/lua/5.5
# Install documentation
install -Dm644 lua5.5/lpeg.html "$BPM_OUTPUT"/usr/share/doc/lpeg-lua5.5/lpeg.html
# Install package license
install -Dm644 "$BPM_WORKDIR"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/lua-lpeg/LICENSE
}
package_lua5.4-lpeg() {
install -Dm755 lua5.4/lpeg.so -t "$BPM_OUTPUT"/usr/lib/lua/5.4 install -Dm755 lua5.4/lpeg.so -t "$BPM_OUTPUT"/usr/lib/lua/5.4
install -Dm644 lua5.4/re.lua -t "$BPM_OUTPUT"/usr/share/lua/5.4 install -Dm644 lua5.4/re.lua -t "$BPM_OUTPUT"/usr/share/lua/5.4
@@ -35,7 +46,7 @@ package_lua-lpeg() {
install -Dm644 lua5.4/lpeg.html "$BPM_OUTPUT"/usr/share/doc/lpeg-lua5.4/lpeg.html install -Dm644 lua5.4/lpeg.html "$BPM_OUTPUT"/usr/share/doc/lpeg-lua5.4/lpeg.html
# Install package license # Install package license
install -Dm644 "$BPM_WORKDIR"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/lua-lpeg/LICENSE install -Dm644 "$BPM_WORKDIR"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/lua5.4-lpeg/LICENSE
} }
package_lua5.3-lpeg() { package_lua5.3-lpeg() {