wok view lua/receipt @ rev 13752

xpad: up 4.1
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jan 02 22:16:05 2013 +0000 (2013-01-02)
parents 2161c145d5b3
children 2a5cc8208d36
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 DEPENDS="readline ncurses"
8 BUILD_DEPENDS="readline-dev"
9 MAINTAINER="pankso@slitaz.org"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.lua.org/"
12 WGET_URL="http://www.lua.org/ftp/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
19 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
20 make linux &&
21 # lua.pc
22 make pc > lua.pc &&
23 sed -i "s#/local##g" lua.pc &&
24 make install \
25 INSTALL_TOP=$DESTDIR/usr \
26 INSTALL_MAN=$DESTDIR/usr/share/man/man1
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 cp -a $install/usr/bin $fs/usr
34 }