Rebuild with lua 5.5

This commit is contained in:
2026-01-18 10:33:12 +02:00
parent d8079f851f
commit 71a82541bf
2 changed files with 17 additions and 5 deletions
+8 -3
View File
@@ -1,7 +1,7 @@
name: lua-mpack
description: Simple implementation of msgpack in C Lua
version: 1.0.13
revision: 1
revision: 2
url: https://github.com/libmpack/libmpack-lua
license: MIT
architecture: any
@@ -9,9 +9,10 @@ type: source
make_depends:
- libmpack
- lua
- lua5.1
- lua5.2
- lua5.4
- lua5.3
- lua5.2
- lua5.1
downloads:
- url: https://github.com/libmpack/libmpack-lua/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
@@ -22,6 +23,10 @@ split_packages:
depends:
- libmpack
- lua
- name: lua5.4-mpack
depends:
- libmpack
- lua5.4
- name: lua5.3-mpack
depends:
- libmpack
+9 -2
View File
@@ -6,7 +6,7 @@
# This function is used to compile the source code
build() {
gcc -O2 -fPIC -DMPACK_USE_SYSTEM -I/usr/include -c lmpack.c -o lmpack.o
gcc -shared -lmpack -o mpack.so.5.4 lmpack.o
gcc -shared -lmpack -o mpack.so.5.5 lmpack.o
for ver in 5.4 5.3 5.2 5.1; do
gcc -O2 -fPIC -DMPACK_USE_SYSTEM -I/usr/include/lua$ver -c lmpack.c -o lmpack.o
@@ -17,12 +17,19 @@ build() {
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package_lua-mpack() {
install -Dm755 mpack.so.5.4 "$BPM_OUTPUT"/usr/lib/lua/5.4/mpack.so
install -Dm755 mpack.so.5.5 "$BPM_OUTPUT"/usr/lib/lua/5.5/mpack.so
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE-MIT "$BPM_OUTPUT"/usr/share/licenses/lua-mpack/LICENSE
}
package_lua5.4-mpack() {
install -Dm755 mpack.so.5.4 "$BPM_OUTPUT"/usr/lib/lua/5.4/mpack.so
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE-MIT "$BPM_OUTPUT"/usr/share/licenses/lua5.4-mpack/LICENSE
}
package_lua5.3-mpack() {
install -Dm755 mpack.so.5.3 "$BPM_OUTPUT"/usr/lib/lua/5.3/mpack.so