wok-current view lua-posix/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents b569b85b0fb9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lua-posix"
4 VERSION="35.0"
5 CATEGORY="development"
6 SHORT_DESC="POSIX Library for the Lua Programming Language."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/luaposix/luaposix"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"
14 SUGGESTED="lua"
15 BUILD_DEPENDS="lua-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export USER=$VERSION
28 build-aux/luke
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 # lua-dev is version 5.2
35 mkdir -p $fs/usr/lib/lua/5.2
37 cp -a $src/linux/posix $fs/usr/lib/lua/5.2
38 cp -a $src/lib/posix $fs/usr/lib/lua/5.2
39 }