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