wok-next view lua/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents b19ddba309f9
children 05e408d1554a
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 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/lua.html"
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 compile_rules() {
19 sed -i '/#define LUA_ROOT/ s:/usr/local/:/usr/:' src/luaconf.h
21 case "$ARCH" in
22 arm)
23 make CC=${HOST_SYSTEM}-gcc posix
24 ;;
25 i486)
26 sed -i "s|-O2|-Os -march=$ARCH|" src/Makefile
27 make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux
28 ;;
29 x86_64)
30 sed -i 's|-O2|-Os -march=nocona|' src/Makefile
31 make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux
32 ;;
33 esac &&
35 make \
36 INSTALL_TOP=$DESTDIR/usr \
37 INSTALL_DATA="cp -d" \
38 INSTALL_MAN=$DESTDIR/usr/share/man/man1 \
39 TO_LIB="liblua.so liblua.so.${VERSION%.*} liblua.so.$VERSION" \
40 install || return 1
42 cook_pick_docs doc/*
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 genpkg_rules() {
53 case $PACKAGE in
54 lua)
55 copy bin/
56 DEPENDS="readline"
57 ;;
58 liblua)
59 copy *.so*
60 CAT="libs|library"
61 ;;
62 *-dev)
63 copy @dev
64 ;;
65 esac
66 }