wok view luajit/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents e717a4953b0e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="luajit"
4 VERSION="2.0.5"
5 CATEGORY="development"
6 SHORT_DESC="Just-In-Time Compiler for Lua."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://luajit.org"
11 SOURCE="LuaJIT"
12 TARBALL="${SOURCE}-${VERSION}.tar.gz"
13 WGET_URL="https://fossies.org/linux/misc/$TARBALL"
15 #HOST_ARCH="i486 arm"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/LuaJIT/LuaJIT/tags 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make amalg PREFIX=/usr &&
28 make install DESTDIR=$DESTDIR PREFIX=/usr
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 mkdir -p $fs/usr/share
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 cp -a $install/usr/share/luajit-* $fs/usr/share
40 }