Files
Pmodules/recipes/043-luarocks
T
gsell 834c59d5a2 Merge branch '365-build-systems-fix-issues-in-recipes-of-luarocks-and-7z' into 'master'
Resolve "build-systems: fix issues in recipes of luarocks and 7z"

Closes #365

See merge request Pmodules/src!377

(cherry picked from commit 6a79b5ff59)

fdfebe1c build-system: bugs in recipes fixed

Co-authored-by: gsell <achim.gsell@psi.ch>
2024-09-25 09:33:39 +02:00

34 lines
579 B
Bash
Executable File

#!/bin/bash
#
# https://
#
P=luarocks
V=${LUAROCKS_VERSION:-3.9.2}
FNAME="$P-$V.tar.gz"
DOWNLOAD_URL="https://luarocks.org/releases/$P-$V.tar.gz"
source "$(dirname "$0")/librecipes.bash"
#---
# configure
LUA_PREFIX="${PREFIX}/libexec/lua"
PATH="${LUA_PREFIX}/bin:$PATH"
"${SRC_DIR}"/configure \
--prefix="${LUA_PREFIX}" \
--with-lua="${LUA_PREFIX}"
#---
# compile & install
make -e -j ${NJOBS} || exit ${PB_ERR_MAKE}
make -e install || exit ${PB_ERR_INSTALL}
#---
# post-install
#---
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End: