wok-current view lua/receipt @ rev 24538

updated fbcat (0.5.1 -> 0.5.2)
author Hans-G?nter Theisgen
date Wed Feb 23 15:14:49 2022 +0100 (2022-02-23)
parents 2514d4060d32
children 5926178cd6fa
line source
1 # SliTaz package receipt.
3 PACKAGE="lua"
4 VERSION="5.2.4"
5 CATEGORY="development"
6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.lua.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.lua.org/ftp/$TARBALL"
14 DEPENDS="libtic ncurses readline"
15 BUILD_DEPENDS="libtic ncurses-dev readline-dev"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
31 case "$ARCH" in
32 arm)
33 make CC=${HOST_SYSTEM}-gcc posix ;;
34 i486)
35 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
36 make linux MYLIBS=/lib/libtic.so ;;
37 esac &&
39 # lua.pc
40 make pc > lua.pc &&
41 sed -i "s#/local##g" lua.pc &&
42 make install \
43 INSTALL_TOP=$DESTDIR/usr \
44 INSTALL_MAN=$DESTDIR/usr/share/man/man1
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/bin
51 cp -a $install/usr/bin $fs/usr
52 }
54 testsuite()
55 {
56 readelf -h $install/usr/bin/lua
57 }