wok-next view lua5.1/receipt @ rev 14670
efreet-dev: Up to 1.7.7
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Jun 06 22:08:27 2013 +0200 (2013-06-06) |
parents | |
children | 2a5cc8208d36 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lua5.1"
4 VERSION="5.1.4"
5 SOURCE="lua"
6 CATEGORY="development"
7 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
8 DEPENDS="readline ncurses"
9 BUILD_DEPENDS="readline-dev"
10 MAINTAINER="pankso@slitaz.org"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://www.lua.org/"
13 WGET_URL="http://www.lua.org/ftp/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 patch -p0 < $stuff/lua5.1-paths.patch || exit 1
20 sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc
21 sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc
22 sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc
23 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
24 sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h
25 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
26 make linux &&
27 make install \
28 INSTALL_TOP=$DESTDIR/usr \
29 INSTALL_MAN=$DESTDIR/usr/share/man/man1
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin $fs/usr/lib/lua/5.1
36 cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
37 cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
38 }