wok-6.x view lua5.1/receipt @ rev 24588

updated gdbm and gdbm-dev (1.18.1 -> 1.23)
author Hans-G?nter Theisgen
date Mon Feb 28 15:06:59 2022 +0100 (2022-02-28)
parents 2838a5093750
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lua5.1"
4 VERSION="5.1.5"
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 SOURCE="lua"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://www.lua.org/ftp/$TARBALL"
15 DEPENDS="readline ncurses"
16 BUILD_DEPENDS="readline-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$SOURCE-5.1/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 patch -p0 < $stuff/lua5.1-paths.patch || exit 1
29 sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc
30 sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc
31 sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc
32 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
33 sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h
34 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
36 make linux &&
37 make install \
38 INSTALL_TOP=$DESTDIR/usr \
39 INSTALL_MAN=$DESTDIR/usr/share/man/man1
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/bin
46 mkdir -p $fs/usr/lib/lua/5.1
48 cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
49 cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
50 }