wok-next view lua/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | c4e53a39395a |
children | b1a1deb20f42 |
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 compile_rules() {
18 sed -i '/#define LUA_ROOT/ s:/usr/local/:/usr/:' src/luaconf.h
20 case "$ARCH" in
21 arm)
22 make CC=${HOST_SYSTEM}-gcc posix
23 ;;
24 i486)
25 sed -i "s|-O2|-Os -march=$ARCH|" src/Makefile
26 make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux
27 ;;
28 x86_64)
29 sed -i 's|-O2|-Os -march=nocona|' src/Makefile
30 make MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux
31 ;;
32 esac &&
34 make \
35 INSTALL_TOP=$DESTDIR/usr \
36 INSTALL_DATA="cp -d" \
37 INSTALL_MAN=$DESTDIR/usr/share/man/man1 \
38 TO_LIB="liblua.so liblua.so.${VERSION%.*} liblua.so.$VERSION" \
39 install || return 1
41 cook_pick_docs doc/*
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 genpkg_rules() {
52 case $PACKAGE in
53 lua)
54 copy bin/
55 DEPENDS="ncurses readline"
56 ;;
57 liblua)
58 copy *.so*
59 CAT="libs|library"
60 ;;
61 *-dev)
62 copy @dev
63 ;;
64 esac
65 }