wok-next view lua/receipt @ rev 20458
Unlock x86_64 architecture
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 12:12:14 2018 +0200 (2018-03-02) |
parents | 00c2445991e5 |
children | b19ddba309f9 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lua"
4 VERSION="5.3.4"
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.lua.org/ftp/$TARBALL"
14 BUILD_DEPENDS="readline-dev"
15 SPLIT="liblua lua-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h &&
22 case "$ARCH" in
23 arm)
24 make CC=${HOST_SYSTEM}-gcc posix
25 ;;
26 i486)
27 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
28 make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux
29 ;;
30 esac &&
32 make \
33 INSTALL_TOP=$DESTDIR/usr \
34 INSTALL_DATA="cp -d" \
35 INSTALL_MAN=$DESTDIR/usr/share/man/man1 \
36 TO_LIB="liblua.so liblua.so.${VERSION%.*} liblua.so.$VERSION" \
37 install &&
39 docdir="$install/usr/share/doc/lua-$VERSION" &&
40 mkdir -p $docdir &&
41 cp -a doc/* $docdir && rm $docdir/*.1 &&
43 mkdir -p $install/usr/lib/pkgconfig &&
44 cp $stuff/lua.pc $install/usr/lib/pkgconfig
45 }
47 testsuite() {
48 readelf -h $install/usr/bin/lua
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 case $PACKAGE in
55 lua)
56 copy bin/
57 DEPENDS="ncurses readline"
58 ;;
59 liblua)
60 copy *.so*
61 CAT="libs|library"
62 ;;
63 *-dev)
64 copy @dev
65 ;;
66 esac
67 }