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