wok-current annotate lua/receipt @ rev 24890
trafshow: libpcap 1.10 has its own pcap_init
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 05 09:06:43 2022 +0000 (2022-04-05) |
parents | 2514d4060d32 |
children |
rev | line source |
---|---|
pankso@634 | 1 # SliTaz package receipt. |
pankso@634 | 2 |
pankso@634 | 3 PACKAGE="lua" |
Hans-G?nter@21568 | 4 VERSION="5.2.4" |
pascal@741 | 5 CATEGORY="development" |
pankso@634 | 6 SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language." |
pankso@634 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15379 | 8 LICENSE="MIT" |
Hans-G?nter@21568 | 9 WEB_SITE="https://www.lua.org/" |
Hans-G?nter@21568 | 10 |
pankso@634 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21568 | 12 WGET_URL="https://www.lua.org/ftp/$TARBALL" |
Hans-G?nter@21568 | 13 |
Hans-G?nter@21568 | 14 DEPENDS="libtic ncurses readline" |
Hans-G?nter@21568 | 15 BUILD_DEPENDS="libtic ncurses-dev readline-dev" |
Hans-G?nter@21568 | 16 |
pankso@15990 | 17 HOST_ARCH="i486 arm" |
pankso@634 | 18 |
pascal@24447 | 19 # What is the latest version available today? |
pascal@24447 | 20 current_version() |
pascal@24447 | 21 { |
pascal@24447 | 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 24 } |
pascal@24447 | 25 |
pankso@634 | 26 # Rules to configure and make the package. |
pankso@634 | 27 compile_rules() |
pankso@634 | 28 { |
pascal@2058 | 29 sed -i "s#/usr/local/#/usr/#" src/luaconf.h |
Hans-G?nter@21568 | 30 |
pankso@15990 | 31 case "$ARCH" in |
pankso@15990 | 32 arm) |
pankso@15990 | 33 make CC=${HOST_SYSTEM}-gcc posix ;; |
pankso@15990 | 34 i486) |
pankso@15990 | 35 sed -i s"/-O2/-Os -march=$ARCH/" src/Makefile |
Hans-G?nter@21568 | 36 make linux MYLIBS=/lib/libtic.so ;; |
pankso@15990 | 37 esac && |
Hans-G?nter@21568 | 38 |
pankso@13502 | 39 # lua.pc |
pankso@13502 | 40 make pc > lua.pc && |
pankso@13502 | 41 sed -i "s#/local##g" lua.pc && |
Hans-G?nter@21568 | 42 make install \ |
Hans-G?nter@21568 | 43 INSTALL_TOP=$DESTDIR/usr \ |
pankso@10835 | 44 INSTALL_MAN=$DESTDIR/usr/share/man/man1 |
pankso@634 | 45 } |
pankso@634 | 46 |
pankso@634 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@634 | 48 genpkg_rules() |
pankso@634 | 49 { |
pankso@634 | 50 mkdir -p $fs/usr/bin |
Hans-G?nter@21568 | 51 cp -a $install/usr/bin $fs/usr |
pankso@634 | 52 } |
pankso@15990 | 53 |
pankso@15990 | 54 testsuite() |
pankso@15990 | 55 { |
pankso@15990 | 56 readelf -h $install/usr/bin/lua |
pankso@15990 | 57 } |