wok-current annotate luajit/receipt @ rev 25520
created recipes for libluv and libluv-dev 1.44.2.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:44:32 2023 +0100 (21 months ago) |
parents | ede1d184d5c5 |
children |
rev | line source |
---|---|
pankso@16147 | 1 # SliTaz package receipt. |
pankso@16147 | 2 |
pankso@16147 | 3 PACKAGE="luajit" |
Hans-G?nter@21383 | 4 VERSION="2.0.5" |
pankso@16147 | 5 CATEGORY="development" |
pankso@16147 | 6 SHORT_DESC="Just-In-Time Compiler for Lua." |
pankso@16147 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16147 | 8 LICENSE="MIT" |
Hans-G?nter@21383 | 9 WEB_SITE="https://luajit.org" |
Hans-G?nter@21383 | 10 |
pankso@16147 | 11 SOURCE="LuaJIT" |
pankso@16147 | 12 TARBALL="${SOURCE}-${VERSION}.tar.gz" |
pascal@24975 | 13 WGET_URL="https://luajit.org/download/$TARBALL" |
Hans-G?nter@21383 | 14 |
pankso@16147 | 15 #HOST_ARCH="i486 arm" |
pankso@16147 | 16 |
pascal@24447 | 17 # What is the latest version available today? |
pascal@24447 | 18 current_version() |
pascal@24447 | 19 { |
pascal@24447 | 20 wget -O - http://luajit.org/download.html 2>/dev/null | \ |
pascal@24447 | 21 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;/beta/d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 22 } |
pascal@24447 | 23 |
pankso@16147 | 24 # Rules to configure and make the package. |
pankso@16147 | 25 compile_rules() |
pankso@16147 | 26 { |
pankso@16147 | 27 make amalg PREFIX=/usr && |
pankso@16147 | 28 make install DESTDIR=$DESTDIR PREFIX=/usr |
pankso@16147 | 29 } |
pankso@16147 | 30 |
pankso@16147 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16147 | 32 genpkg_rules() |
pankso@16147 | 33 { |
Hans-G?nter@21383 | 34 mkdir -p $fs/usr/lib |
Hans-G?nter@21383 | 35 mkdir -p $fs/usr/share |
Hans-G?nter@21383 | 36 |
Hans-G?nter@21383 | 37 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21383 | 38 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21383 | 39 cp -a $install/usr/share/luajit-* $fs/usr/share |
pankso@16147 | 40 } |