wok view lua/receipt @ rev 17566

Up: pixman 0.32.6
author Alexander Medvedev <devl547@gmail.com>
date Sat Feb 07 17:31:51 2015 +0000 (2015-02-07)
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 }