wok-next annotate lua/receipt @ rev 15379
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 20 22:08:25 2013 +0000 (2013-10-20) |
parents | 0769826c3fc4 |
children | 805d0bebfba2 |
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." |
pankso@634 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15379 | 8 LICENSE="MIT" |
pankso@634 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@634 | 10 WEB_SITE="http://www.lua.org/" |
pankso@634 | 11 WGET_URL="http://www.lua.org/ftp/$TARBALL" |
pankso@634 | 12 |
pascal@15379 | 13 DEPENDS="readline ncurses" |
pascal@15379 | 14 BUILD_DEPENDS="readline-dev" |
pascal@15379 | 15 |
pankso@634 | 16 # Rules to configure and make the package. |
pankso@634 | 17 compile_rules() |
pankso@634 | 18 { |
pankso@634 | 19 cd $src |
pascal@2058 | 20 sed -i "s#/usr/local/#/usr/#" src/luaconf.h |
pankso@10835 | 21 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile |
pankso@10835 | 22 make linux && |
pankso@13502 | 23 # lua.pc |
pankso@13502 | 24 make pc > lua.pc && |
pankso@13502 | 25 sed -i "s#/local##g" lua.pc && |
pankso@10835 | 26 make install \ |
pankso@10835 | 27 INSTALL_TOP=$DESTDIR/usr \ |
pankso@10835 | 28 INSTALL_MAN=$DESTDIR/usr/share/man/man1 |
pankso@634 | 29 } |
pankso@634 | 30 |
pankso@634 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@634 | 32 genpkg_rules() |
pankso@634 | 33 { |
pankso@634 | 34 mkdir -p $fs/usr/bin |
pankso@10835 | 35 cp -a $install/usr/bin $fs/usr |
pankso@634 | 36 } |