wok view lua/receipt @ rev 25669

Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 16:11:20 2024 +0000 (2 months ago)
parents ede1d184d5c5
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lua"
4 VERSION="5.4.6"
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 }