Files
packages/extra/lua/build.sh
T
SFG545 49bf7bbb5d Add configuration files and patches for R, SDL2, SDL3, Tk, and Vala
- Introduced `r.toml` for R package configuration, including build flags and dependencies.
- Added `sdl2-compat.toml` for SDL2 compatibility layer with SDL3, specifying build and runtime dependencies.
- Created a patch for SDL3 to handle cases when XInput2 is not available, ensuring compatibility.
- Added `sdl3.toml` for SDL3 configuration, including build flags and dependencies.
- Introduced `tk.toml` for Tk configuration, detailing build flags and runtime dependencies.
- Added a patch for Vala to ensure POSIX compliance in the test runner script, improving portability.
2026-03-24 00:04:10 -05:00

33 lines
1.3 KiB
Bash

make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" linux
cd ../lua++-5.5.0
make MYCFLAGS="$CXXFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" LUA_A=liblua++.a LUA_SO=liblua++.so linux
cd ../lua-5.5.0
make \
TO_LIB="liblua.so liblua.so.5.5 liblua.so.5.5.0" \
INSTALL_DATA='cp -d' \
INSTALL_TOP="$DESTDIR"/usr \
INSTALL_MAN="$DESTDIR"/usr/share/man/man1 \
install
ln -sf /usr/bin/lua "$DESTDIR"/usr/bin/lua5.5
ln -sf /usr/bin/luac "$DESTDIR"/usr/bin/luac5.5
ln -sf /usr/lib/liblua.so.5.5.0 "$DESTDIR"/usr/lib/liblua5.5.so
install -Dm644 lua.pc "$DESTDIR"/usr/lib/pkgconfig/lua55.pc
ln -sf lua55.pc "$DESTDIR"/usr/lib/pkgconfig/lua.pc
ln -sf lua55.pc "$DESTDIR"/usr/lib/pkgconfig/lua5.5.pc
ln -sf lua55.pc "$DESTDIR"/usr/lib/pkgconfig/lua-5.5.pc
cd ../lua++-5.5.0
make \
TO_LIB="liblua++.so liblua++.so.5.5 liblua++.so.5.5.0" \
INSTALL_BIN=null INSTALL_INC=null INSTALL_MAN=../null \
INSTALL_DATA='cp -d' \
INSTALL_TOP="$DESTDIR"/usr \
install
ln -sf /usr/lib/liblua++.so.5.5.0 "$DESTDIR"/usr/lib/liblua++5.5.so
install -Dm644 lua++.pc "$DESTDIR"/usr/lib/pkgconfig/lua++55.pc
ln -sf lua++55.pc "$DESTDIR"/usr/lib/pkgconfig/lua++.pc
ln -sf lua++55.pc "$DESTDIR"/usr/lib/pkgconfig/lua++5.5.pc
ln -sf lua++55.pc "$DESTDIR"/usr/lib/pkgconfig/lua++-5.5.pc