wok view lua5.1/receipt @ rev 21497

updated mtools (4.0.16 -> 4.0.23)
author Hans-G?nter Theisgen
date Thu May 02 13:07:21 2019 +0100 (2019-05-02)
parents 2a5cc8208d36
children ede1d184d5c5
line source
1 # SliTaz package receipt.
3 PACKAGE="lua5.1"
4 VERSION="5.1.5"
5 CATEGORY="development"
6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.lua.org/"
11 SOURCE="lua"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://www.lua.org/ftp/$TARBALL"
15 DEPENDS="readline ncurses"
16 BUILD_DEPENDS="readline-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 patch -p0 < $stuff/lua5.1-paths.patch || exit 1
22 sed -i "s#prefix= /usr/local#prefix= /usr#" etc/lua.pc
23 sed -i "s#${prefix}/lib#${prefix}/lib/lua/5.1#" etc/lua.pc
24 sed -i "s#/include#/include/lua/5.1#g" etc/lua.pc
25 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
26 sed -i "s#share/lua/5.1/#lib/lua/5.1/#" src/luaconf.h
27 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
29 make linux &&
30 make install \
31 INSTALL_TOP=$DESTDIR/usr \
32 INSTALL_MAN=$DESTDIR/usr/share/man/man1
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/bin
39 mkdir -p $fs/usr/lib/lua/5.1
41 cp -a $install/usr/bin/lua $fs/usr/bin/lua5.1
42 cp -a $install/usr/bin/luac $fs/usr/bin/luac5.1
43 }