diff options
Diffstat (limited to 'development/Fennel/Fennel.SlackBuild')
-rw-r--r-- | development/Fennel/Fennel.SlackBuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/development/Fennel/Fennel.SlackBuild b/development/Fennel/Fennel.SlackBuild index 7f3f27107b60..3abb4745fa98 100644 --- a/development/Fennel/Fennel.SlackBuild +++ b/development/Fennel/Fennel.SlackBuild @@ -22,7 +22,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=Fennel -VERSION=${VERSION:-0.3.0} +VERSION=${VERSION:-0.3.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -83,7 +83,7 @@ if $(lua5.2 -v &> /dev/null); then install -D -m 0644 fennelview.fnl.lua $PKG/usr/share/lua/5.2/fennelview.lua fi -# lua 5.3 support +# lua 5.3 support. if $(lua5.3 -v &> /dev/null); then sed -i '1s|lua.*|lua5.3|' fennel @@ -93,6 +93,13 @@ if $(lua5.3 -v &> /dev/null); then install -D -m 0644 fennelview.fnl.lua $PKG/usr/share/lua/5.3/fennelview.lua fi +# luajit support. +if $(luajit -v &> /dev/null); then + sed -i '1s|lua.*|luajit|' fennel + + install -D -m 0755 fennel $PKG/usr/bin/fenneljit +fi + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |