wok view lua/receipt @ rev 24228

syslinux: add apple partitions (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 01 11:57:50 2022 +0000 (2022-01-01)
parents 805d0bebfba2
children ede1d184d5c5
line source
1 # SliTaz package receipt.
3 PACKAGE="lua"
4 VERSION="5.2.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 DEPENDS="libtic ncurses readline"
15 BUILD_DEPENDS="libtic ncurses-dev readline-dev"
17 HOST_ARCH="i486 arm"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i "s#/usr/local/#/usr/#" src/luaconf.h
24 case "$ARCH" in
25 arm)
26 make CC=${HOST_SYSTEM}-gcc posix ;;
27 i486)
28 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile
29 make linux MYLIBS=/lib/libtic.so ;;
30 esac &&
32 # lua.pc
33 make pc > lua.pc &&
34 sed -i "s#/local##g" lua.pc &&
35 make install \
36 INSTALL_TOP=$DESTDIR/usr \
37 INSTALL_MAN=$DESTDIR/usr/share/man/man1
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin
44 cp -a $install/usr/bin $fs/usr
45 }
47 testsuite()
48 {
49 readelf -h $install/usr/bin/lua
50 }