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