[luarocks] avoid detecting luajit
This commit is contained in:
parent
c113cf740c
commit
1d76ab1295
1 changed files with 3 additions and 2 deletions
|
@ -46,13 +46,14 @@ cd $PRGNAM
|
||||||
CFLAGS=$SLCKFLAGS \
|
CFLAGS=$SLCKFLAGS \
|
||||||
CPPFLAGS=$SLCKFLAGS \
|
CPPFLAGS=$SLCKFLAGS \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=$PREFIX
|
--prefix=$PREFIX \
|
||||||
|
--lua-version=$(lua -v | rg -o "[0-9]\.[0-9]" | head -n1)
|
||||||
|
|
||||||
# compilation
|
# compilation
|
||||||
make -j3 PREFIX=$PREFIX
|
make -j3 PREFIX=$PREFIX
|
||||||
|
|
||||||
# installation
|
# 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/
|
mkdir -p $PKG/etc/profile.d/
|
||||||
cat <<EOF > $PKG/etc/profile.d/luarocks.sh
|
cat <<EOF > $PKG/etc/profile.d/luarocks.sh
|
||||||
|
|
Loading…
Reference in a new issue