wok-next view lua53/receipt @ rev 21661

updated fonttosfnt (1.0.5 -> 1.1.0)
author Hans-G?nter Theisgen
date Sat Jun 27 13:41:53 2020 +0100 (2020-06-27)
parents
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lua53"
4 VERSION="5.3.5"
5 CATEGORY="development"
6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.lua.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/lua.html"
12 TARBALL="lua-$VERSION.tar.gz"
13 WGET_URL="https://www.lua.org/ftp/$TARBALL"
14 TARBALL_SHA1="112eb10ff04d1b4c9898e121d6bdf54a81482447"
15 # Integrity check: https://www.lua.org/ftp/
17 BUILD_DEPENDS="readline-dev"
18 SPLIT="lib$PACKAGE $PACKAGE-dev $PACKAGE"
20 COPY_dev="@dev luac53 luac" # move luac compiler to dev
22 DEPENDS_liblua53=" "
23 DEPENDS_std="readline"
24 DEPENDS_dev="$PACKAGE lib$PACKAGE"
26 PROVIDE_std="lua"
28 compile_rules() {
29 # Lua 5.3.5 has wrong release version in its Makefile. Fix it.
30 sed -i 's/^R= \$V.4/R= \$V.5/' Makefile
31 # actually logo.gif is png file
32 mv $src/doc/logo.gif $src/doc/logo.png
33 sed -i 's|logo\.gif|logo.png|' $src/doc/*.html
34 chmod u+w $src/doc/lua.1 # 444->644
36 sed -i '/#define LUA_ROOT/ s:/usr/local/:/usr/:' src/luaconf.h
38 sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua53/' \
39 -e '/^LUAC_T=/ s/luac/luac53/' -i src/Makefile
41 case $ARCH in
42 x86_64) CFLAGS="$CFLAGS -fPIC";;
43 esac
45 make \
46 MYCFLAGS="$CFLAGS -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" \
47 MYLDFLAGS="$LDFLAGS" \
48 linux &&
49 make \
50 INSTALL_TOP=$install/usr \
51 INSTALL_DATA="cp -d" \
52 INSTALL_INC=$install/usr/include/lua5.3 \
53 INSTALL_MAN=$install/usr/share/man/man1 \
54 TO_BIN='lua53 luac53' \
55 TO_LIB="liblua53.so liblua53.so.5.3 liblua53.so.$VERSION" \
56 install || return 1
58 cook_pick_docs doc/*.html doc/*.css doc/*.png
60 mkdir -p $install/usr/lib/pkgconfig
61 sed "s|@RELEASE@|$VERSION|" $stuff/lua.pc.in >$install/usr/lib/pkgconfig/lua53.pc
62 }
64 testsuite() {
65 $install/usr/bin/lua53 -v
66 }
68 post_install_lua53() {
69 ln -sf lua53 "$1/usr/bin/lua"
70 }
71 # post_install_lua53_dev() {
72 # ln -sf luac53 "$1/usr/bin/luac"
73 # ln -sf lua53.pc "$1/usr/lib/pkgconfig/lua.pc"
74 # }