wok-next view lua/receipt @ rev 20856

Update libfm-extra, menu-cache, libfm, pcmanfm
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jun 26 17:13:37 2018 +0300 (2018-06-26)
parents b1a1deb20f42
children df20b2110f7e
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"
14 # Integrity check: https://www.lua.org/ftp/
15 TARBALL_SHA1="79790cfd40e09ba796b01a571d4d63b52b1cd950"
17 BUILD_DEPENDS="readline-dev"
18 SPLIT="liblua lua-dev"
20 compile_rules() {
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 x86_64)
32 sed -i 's|-O2|-Os -march=nocona|' src/Makefile
33 make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux
34 ;;
35 esac &&
37 make \
38 INSTALL_TOP=$DESTDIR/usr \
39 INSTALL_DATA="cp -d" \
40 INSTALL_MAN=$DESTDIR/usr/share/man/man1 \
41 TO_LIB="liblua.so liblua.so.${VERSION%.*} liblua.so.$VERSION" \
42 install || return 1
44 cook_pick_docs doc/*
46 mkdir -p $install/usr/lib/pkgconfig
47 cp $stuff/lua.pc $install/usr/lib/pkgconfig
48 }
50 testsuite() {
51 readelf -h $install/usr/bin/lua
52 }
54 genpkg_rules() {
55 case $PACKAGE in
56 lua)
57 copy bin/
58 DEPENDS="readline"
59 ;;
60 liblua)
61 copy *.so*
62 CAT="libs|library"
63 ;;
64 *-dev)
65 copy @dev
66 ;;
67 esac
68 }