wok-current annotate lua5.1/receipt @ rev 21867

compile scilab with gcc83
author Hans-G?nter Theisgen
date Tue Sep 24 16:35:35 2019 +0100 (2019-09-24)
parents 2a5cc8208d36
children ede1d184d5c5
rev   line source
pankso@13632 1 # SliTaz package receipt.
pankso@13632 2
pankso@13632 3 PACKAGE="lua5.1"
Hans-G?nter@21381 4 VERSION="5.1.5"
pankso@13632 5 CATEGORY="development"
pankso@13632 6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
pankso@13632 7 MAINTAINER="pankso@slitaz.org"
pascal@15379 8 LICENSE="MIT"
Hans-G?nter@21381 9 WEB_SITE="https://www.lua.org/"
Hans-G?nter@21381 10
Hans-G?nter@21381 11 SOURCE="lua"
pankso@13632 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@21381 13 WGET_URL="https://www.lua.org/ftp/$TARBALL"
pankso@13632 14
pascal@15379 15 DEPENDS="readline ncurses"
pascal@15379 16 BUILD_DEPENDS="readline-dev"
pascal@15379 17
pankso@13632 18 # Rules to configure and make the package.
pankso@13632 19 compile_rules()
pankso@13632 20 {
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
Hans-G?nter@21381 28
pankso@13632 29 make linux &&
Hans-G?nter@21381 30 make install \
Hans-G?nter@21381 31 INSTALL_TOP=$DESTDIR/usr \
pankso@13632 32 INSTALL_MAN=$DESTDIR/usr/share/man/man1
pankso@13632 33 }
pankso@13632 34
pankso@13632 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@13632 36 genpkg_rules()
pankso@13632 37 {
Hans-G?nter@21381 38 mkdir -p $fs/usr/bin
Hans-G?nter@21381 39 mkdir -p $fs/usr/lib/lua/5.1
Hans-G?nter@21381 40
Hans-G?nter@21381 41 cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
Hans-G?nter@21381 42 cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
pankso@13632 43 }