wok-current view lua/receipt @ rev 20119
slitaz-base-files (333), slitaz-boot-scripts (445), slitaz-configs (313), slitaz-tools (1025), tazbug (152), tazinst (93), tazirc (22), tazlito (469), tazpanel (617), tazweb (208): revision of german messages
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 14 10:45:51 2017 +0200 (2017-10-14) |
parents | 2a5cc8208d36 |
children | 2514d4060d32 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lua"
4 VERSION="5.2.1"
5 CATEGORY="development"
6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.lua.org/"
11 WGET_URL="http://www.lua.org/ftp/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="readline ncurses"
15 BUILD_DEPENDS="readline-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
21 case "$ARCH" in
22 arm)
23 make CC=${HOST_SYSTEM}-gcc posix ;;
24 i486)
25 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
26 make linux ;;
27 esac &&
28 # lua.pc
29 make pc > lua.pc &&
30 sed -i "s#/local##g" lua.pc &&
31 make install \
32 INSTALL_TOP=$DESTDIR/usr \
33 INSTALL_MAN=$DESTDIR/usr/share/man/man1
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/bin
40 cp -a $install/usr/bin $fs/usr
41 }
43 testsuite()
44 {
45 readelf -h $install/usr/bin/lua
46 }