wok annotate lua/receipt @ rev 17970
Add scilab
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 17 23:05:43 2015 +0200 (2015-04-17) |
parents | 2a5cc8208d36 |
children | 2514d4060d32 |
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@15990 | 12 HOST_ARCH="i486 arm" |
pankso@634 | 13 |
pascal@15379 | 14 DEPENDS="readline ncurses" |
pascal@15379 | 15 BUILD_DEPENDS="readline-dev" |
pascal@15379 | 16 |
pankso@634 | 17 # Rules to configure and make the package. |
pankso@634 | 18 compile_rules() |
pankso@634 | 19 { |
pascal@2058 | 20 sed -i "s#/usr/local/#/usr/#" src/luaconf.h |
pankso@15990 | 21 case "$ARCH" in |
pankso@15990 | 22 arm) |
pankso@15990 | 23 make CC=${HOST_SYSTEM}-gcc posix ;; |
pankso@15990 | 24 i486) |
pankso@15990 | 25 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile |
pankso@15990 | 26 make linux ;; |
pankso@15990 | 27 esac && |
pankso@13502 | 28 # lua.pc |
pankso@13502 | 29 make pc > lua.pc && |
pankso@13502 | 30 sed -i "s#/local##g" lua.pc && |
pankso@10835 | 31 make install \ |
pankso@10835 | 32 INSTALL_TOP=$DESTDIR/usr \ |
pankso@10835 | 33 INSTALL_MAN=$DESTDIR/usr/share/man/man1 |
pankso@634 | 34 } |
pankso@634 | 35 |
pankso@634 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@634 | 37 genpkg_rules() |
pankso@634 | 38 { |
pankso@634 | 39 mkdir -p $fs/usr/bin |
pankso@10835 | 40 cp -a $install/usr/bin $fs/usr |
pankso@634 | 41 } |
pankso@15990 | 42 |
pankso@15990 | 43 testsuite() |
pankso@15990 | 44 { |
pankso@15990 | 45 readelf -h $install/usr/bin/lua |
pankso@15990 | 46 } |