wok-next view lua/receipt @ rev 20074
Up dooble, smtube
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 05:01:33 2017 +0200 (2017-10-25) |
parents | 0994d769f208 |
children | c4e53a39395a |
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/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://www.lua.org/ftp/$TARBALL"
15 BUILD_DEPENDS="readline-dev"
16 SPLIT="liblua lua-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h &&
23 case "$ARCH" in
24 arm)
25 make CC=${HOST_SYSTEM}-gcc posix
26 ;;
27 i486)
28 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
29 make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux
30 ;;
31 esac &&
33 make \
34 INSTALL_TOP=$DESTDIR/usr \
35 INSTALL_DATA="cp -d" \
36 INSTALL_MAN=$DESTDIR/usr/share/man/man1 \
37 TO_LIB="liblua.so liblua.so.${VERSION%.*} liblua.so.$VERSION" \
38 install &&
40 docdir="$install/usr/share/doc/lua-$VERSION" &&
41 mkdir -p $docdir &&
42 cp -a doc/* $docdir && rm $docdir/*.1 &&
44 mkdir -p $install/usr/lib/pkgconfig &&
45 cp $stuff/lua.pc $install/usr/lib/pkgconfig
46 }
48 testsuite() {
49 readelf -h $install/usr/bin/lua
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 case $PACKAGE in
56 lua)
57 copy bin/
58 DEPENDS="ncurses readline"
59 ;;
60 liblua)
61 copy *.so*
62 CAT="libs|library"
63 ;;
64 *-dev)
65 copy @dev
66 ;;
67 esac
68 }