# SliTaz package receipt. PACKAGE="luajit" VERSION="2.0.5" CATEGORY="development" SHORT_DESC="Just-In-Time Compiler for Lua." MAINTAINER="pankso@slitaz.org" LICENSE="MIT" WEB_SITE="https://luajit.org" SOURCE="LuaJIT" TARBALL="${SOURCE}-${VERSION}.tar.gz" WGET_URL="https://luajit.org/download/$TARBALL" #HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - http://luajit.org/download.html 2>/dev/null | \ sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;/beta/d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { make amalg PREFIX=/usr && make install DESTDIR=$DESTDIR PREFIX=/usr } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib mkdir -p $fs/usr/share cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/share/luajit-* $fs/usr/share }