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