wok annotate lua/receipt @ rev 14771

gadmin-*: typos
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 29 17:44:06 2013 +0200 (2013-06-29)
parents 2161c145d5b3
children 2a5cc8208d36
rev   line source
pankso@634 1 # SliTaz package receipt.
pankso@634 2
pankso@634 3 PACKAGE="lua"
pankso@13502 4 VERSION="5.2.1"
pascal@741 5 CATEGORY="development"
pankso@634 6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
pascal@2474 7 DEPENDS="readline ncurses"
pankso@634 8 BUILD_DEPENDS="readline-dev"
pankso@634 9 MAINTAINER="pankso@slitaz.org"
pankso@634 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@634 11 WEB_SITE="http://www.lua.org/"
pankso@634 12 WGET_URL="http://www.lua.org/ftp/$TARBALL"
pankso@634 13
pankso@634 14 # Rules to configure and make the package.
pankso@634 15 compile_rules()
pankso@634 16 {
pankso@634 17 cd $src
pascal@2058 18 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
pankso@10835 19 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
pankso@10835 20 make linux &&
pankso@13502 21 # lua.pc
pankso@13502 22 make pc > lua.pc &&
pankso@13502 23 sed -i "s#/local##g" lua.pc &&
pankso@10835 24 make install \
pankso@10835 25 INSTALL_TOP=$DESTDIR/usr \
pankso@10835 26 INSTALL_MAN=$DESTDIR/usr/share/man/man1
pankso@634 27 }
pankso@634 28
pankso@634 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@634 30 genpkg_rules()
pankso@634 31 {
pankso@634 32 mkdir -p $fs/usr/bin
pankso@10835 33 cp -a $install/usr/bin $fs/usr
pankso@634 34 }