[luarocks] avoid detecting luajit

This commit is contained in:
Gwenhael Le Moine 2024-12-25 17:44:11 +01:00
parent c113cf740c
commit 1d76ab1295
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -46,13 +46,14 @@ cd $PRGNAM
CFLAGS=$SLCKFLAGS \
CPPFLAGS=$SLCKFLAGS \
./configure \
--prefix=$PREFIX
--prefix=$PREFIX \
--lua-version=$(lua -v | rg -o "[0-9]\.[0-9]" | head -n1)
# compilation
make -j3 PREFIX=$PREFIX
# installation
make install DESTDIR=$PKG ROCKS_TREE=$PREFIX/lib64/luarocks #LUADIR=$PREFIX/lib64/lua/5.1
make install DESTDIR=$PKG ROCKS_TREE=$PREFIX/lib64/luarocks
mkdir -p $PKG/etc/profile.d/
cat <<EOF > $PKG/etc/profile.d/luarocks.sh