wok view lua/receipt @ rev 16979

transmission: compile-schemas
author Richard Dunbar <mojo@slitaz.org>
date Wed Aug 06 15:43:24 2014 +0000 (2014-08-06)
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 }