From 1d76ab1295ed762f026979a7c1c09ebafb4cbbdf Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 25 Dec 2024 17:44:11 +0100 Subject: [PATCH] [luarocks] avoid detecting luajit --- d/luarocks/SlackBuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/d/luarocks/SlackBuild b/d/luarocks/SlackBuild index f429bc88..d8fb2c31 100755 --- a/d/luarocks/SlackBuild +++ b/d/luarocks/SlackBuild @@ -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 < $PKG/etc/profile.d/luarocks.sh