wok-current annotate lua-posix/receipt @ rev 25042
Up lzsa (1.3.12), zstd (1.5.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 01 08:14:05 2022 +0000 (2022-06-01) |
parents | b569b85b0fb9 |
children |
rev | line source |
---|---|
Hans-G?nter@23917 | 1 # SliTaz package receipt. |
Hans-G?nter@23917 | 2 |
Hans-G?nter@23917 | 3 PACKAGE="lua-posix" |
Hans-G?nter@23917 | 4 VERSION="35.0" |
Hans-G?nter@23917 | 5 CATEGORY="development" |
Hans-G?nter@23917 | 6 SHORT_DESC="POSIX Library for the Lua Programming Language." |
Hans-G?nter@23917 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@23917 | 8 LICENSE="MIT" |
pascal@24308 | 9 WEB_SITE="https://github.com/luaposix/luaposix" |
Hans-G?nter@23917 | 10 |
Hans-G?nter@23917 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24975 | 12 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" |
Hans-G?nter@23917 | 13 |
Hans-G?nter@23917 | 14 SUGGESTED="lua" |
Hans-G?nter@23917 | 15 BUILD_DEPENDS="lua-dev" |
Hans-G?nter@23917 | 16 |
pascal@24308 | 17 # What is the latest version available today? |
pascal@24308 | 18 current_version() |
pascal@24308 | 19 { |
pascal@24308 | 20 wget -O - $WEB_SITE/releases 2>/dev/null | \ |
pascal@24308 | 21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 22 } |
pascal@24308 | 23 |
Hans-G?nter@23917 | 24 # Rules to configure and make the package. |
Hans-G?nter@23917 | 25 compile_rules() |
Hans-G?nter@23917 | 26 { |
Hans-G?nter@23917 | 27 export USER=$VERSION |
Hans-G?nter@23917 | 28 build-aux/luke |
Hans-G?nter@23917 | 29 } |
Hans-G?nter@23917 | 30 |
Hans-G?nter@23917 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@23917 | 32 genpkg_rules() |
Hans-G?nter@23917 | 33 { |
Hans-G?nter@23917 | 34 # lua-dev is version 5.2 |
Hans-G?nter@23917 | 35 mkdir -p $fs/usr/lib/lua/5.2 |
Hans-G?nter@23917 | 36 |
Hans-G?nter@23917 | 37 cp -a $src/linux/posix $fs/usr/lib/lua/5.2 |
Hans-G?nter@23917 | 38 cp -a $src/lib/posix $fs/usr/lib/lua/5.2 |
Hans-G?nter@23917 | 39 } |