wok-next view lua/receipt @ rev 19681
Up cookutils, cups, fontconfig, gtk+, ijs, paper-icon-theme, poppler, qpdf.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 07 17:30:10 2017 +0300 (2017-04-07) |
parents | 805d0bebfba2 |
children | 00c2445991e5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lua"
4 VERSION="5.3.3"
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/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$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 -Np1 -i $stuff/lua-5.3.3-shared_library-1.patch
22 sed -i '/#define LUA_ROOT/s|/usr/local/|/usr/|' src/luaconf.h
24 case "$ARCH" in
25 arm)
26 make CC=${HOST_SYSTEM}-gcc posix
27 ;;
28 i486)
29 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
30 make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux
31 ;;
32 esac &&
34 make \
35 INSTALL_TOP=$DESTDIR/usr \
36 TO_LIB="liblua.so liblua.so.${VERSION%.*} liblua.so.$VERSION" \
37 INSTALL_DATA="cp -d" \
38 INSTALL_MAN=$DESTDIR/usr/share/man/man1 \
39 install &&
41 mkdir -p $install/usr/share/doc/lua-$VERSION
42 cp -a doc/* $install/usr/share/doc/lua-$VERSION
43 rm $install/usr/share/doc/lua-$VERSION/*.1
45 mkdir -p $install/usr/lib/pkgconfig
46 cp $stuff/lua.pc $install/usr/lib/pkgconfig
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/bin
53 cp -a $install/usr/bin $fs/usr
54 }
56 testsuite()
57 {
58 readelf -h $install/usr/bin/lua
59 }