wok-6.x view lua5.1/receipt @ rev 20067
busybox/udhcpc6: update script (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 23 15:53:27 2017 +0200 (2017-09-23) |
parents | 736c634c3e0c |
children | 2838a5093750 |
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 MAINTAINER="pankso@slitaz.org"
9 LICENSE="MIT"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.lua.org/"
12 WGET_URL="http://www.lua.org/ftp/$TARBALL"
14 DEPENDS="readline ncurses"
15 BUILD_DEPENDS="readline-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 patch -p0 < $stuff/lua5.1-paths.patch || exit 1
22 sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc
23 sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc
24 sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc
25 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
26 sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h
27 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
28 make linux &&
29 make install \
30 INSTALL_TOP=$DESTDIR/usr \
31 INSTALL_MAN=$DESTDIR/usr/share/man/man1
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin $fs/usr/lib/lua/5.1
38 cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
39 cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
40 }