wok annotate lua/receipt @ rev 21762

Up busybox (1.31.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 27 13:32:09 2019 +0200 (2019-06-27)
parents 805d0bebfba2
children ede1d184d5c5
rev   line source
pankso@634 1 # SliTaz package receipt.
pankso@634 2
pankso@634 3 PACKAGE="lua"
Hans-G?nter@21568 4 VERSION="5.2.4"
pascal@741 5 CATEGORY="development"
pankso@634 6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
pankso@634 7 MAINTAINER="pankso@slitaz.org"
pascal@15379 8 LICENSE="MIT"
Hans-G?nter@21568 9 WEB_SITE="https://www.lua.org/"
Hans-G?nter@21568 10
pankso@634 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21568 12 WGET_URL="https://www.lua.org/ftp/$TARBALL"
Hans-G?nter@21568 13
Hans-G?nter@21568 14 DEPENDS="libtic ncurses readline"
Hans-G?nter@21568 15 BUILD_DEPENDS="libtic ncurses-dev readline-dev"
Hans-G?nter@21568 16
pankso@15990 17 HOST_ARCH="i486 arm"
pankso@634 18
pankso@634 19 # Rules to configure and make the package.
pankso@634 20 compile_rules()
pankso@634 21 {
pascal@2058 22 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
Hans-G?nter@21568 23
pankso@15990 24 case "$ARCH" in
pankso@15990 25 arm)
pankso@15990 26 make CC=${HOST_SYSTEM}-gcc posix ;;
pankso@15990 27 i486)
pankso@15990 28 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
Hans-G?nter@21568 29 make linux MYLIBS=/lib/libtic.so ;;
pankso@15990 30 esac &&
Hans-G?nter@21568 31
pankso@13502 32 # lua.pc
pankso@13502 33 make pc > lua.pc &&
pankso@13502 34 sed -i "s#/local##g" lua.pc &&
Hans-G?nter@21568 35 make install \
Hans-G?nter@21568 36 INSTALL_TOP=$DESTDIR/usr \
pankso@10835 37 INSTALL_MAN=$DESTDIR/usr/share/man/man1
pankso@634 38 }
pankso@634 39
pankso@634 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@634 41 genpkg_rules()
pankso@634 42 {
pankso@634 43 mkdir -p $fs/usr/bin
Hans-G?nter@21568 44 cp -a $install/usr/bin $fs/usr
pankso@634 45 }
pankso@15990 46
pankso@15990 47 testsuite()
pankso@15990 48 {
pankso@15990 49 readelf -h $install/usr/bin/lua
pankso@15990 50 }