wok-next view lua/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents df20b2110f7e
children d5aab818505e
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/svn/general/lua.html"
11 REPOLOGY="lua53"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://www.lua.org/ftp/$TARBALL"
15 # Integrity check: https://www.lua.org/ftp/
16 TARBALL_SHA1="79790cfd40e09ba796b01a571d4d63b52b1cd950"
18 BUILD_DEPENDS="readline-dev"
19 SPLIT="liblua $PACKAGE-dev"
21 compile_rules() {
22 sed -i '/#define LUA_ROOT/ s:/usr/local/:/usr/:' src/luaconf.h
24 case "$ARCH" in
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 }