wok-current annotate lua5.1-filesystem/receipt @ rev 25788
Mass update to fix build with gcc10 and up others packages
| author | Stanislas Leduc <shann@slitaz.org> |
|---|---|
| date | Tue Sep 30 07:43:04 2025 +0000 (3 weeks ago) |
| parents | |
| children |
| rev | line source |
|---|---|
| shann@25788 | 1 # SliTaz package receipt. |
| shann@25788 | 2 |
| shann@25788 | 3 PACKAGE="lua5.1-filesystem" |
| shann@25788 | 4 SOURCE="luafilesystem" |
| shann@25788 | 5 VERSION="1.7.0.2" |
| shann@25788 | 6 CATEGORY="development" |
| shann@25788 | 7 SHORT_DESC="File System Library for the Lua Programming Language (5.2)." |
| shann@25788 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
| shann@25788 | 9 LICENSE="MIT" |
| shann@25788 | 10 WEB_SITE="https://github.com/keplerproject/luafilesystem" |
| shann@25788 | 11 |
| shann@25788 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
| shann@25788 | 13 WGET_URL="$WEB_SITE/archive/refs/tags/v${VERSION//./_}.tar.gz" |
| shann@25788 | 14 |
| shann@25788 | 15 HOST_ARCH="i486 x86_64" |
| shann@25788 | 16 |
| shann@25788 | 17 # What is the latest version available today? |
| shann@25788 | 18 current_version() |
| shann@25788 | 19 { |
| shann@25788 | 20 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
| shann@25788 | 21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;s|_|.|g;q' |
| shann@25788 | 22 } |
| shann@25788 | 23 |
| shann@25788 | 24 SUGGESTED="lua5.1" |
| shann@25788 | 25 BUILD_DEPENDS="lua5.1-dev" |
| shann@25788 | 26 |
| shann@25788 | 27 # Rules to configure and make the package. |
| shann@25788 | 28 compile_rules() |
| shann@25788 | 29 { |
| shann@25788 | 30 make CFLAGS="$CFLAGS -I/usr/include/lua/5.1" |
| shann@25788 | 31 } |
| shann@25788 | 32 |
| shann@25788 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
| shann@25788 | 34 genpkg_rules() |
| shann@25788 | 35 { |
| shann@25788 | 36 mkdir -p $fs/usr/lib/lua/5.1/ |
| shann@25788 | 37 cp -a $src/src/lfs.so $fs/usr/lib/lua/5.1/ |
| shann@25788 | 38 } |