wok view lua-posix/receipt @ rev 25039

Up aspell-pl (6.0_20210731-0), icmptx (20190501)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 26 14:53:15 2022 +0000 (2022-05-26)
parents b569b85b0fb9
children 7364ffdaaa60
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 }