wok view lua-readline/receipt @ rev 24974

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 02 11:23:24 2022 +0000 (24 months ago)
parents 34e801e0eb52
children c470ca10c896
line source
1 # SliTaz package receipt.
3 PACKAGE="lua-readline"
4 VERSION="1.0"
5 CATEGORY="development"
6 SHORT_DESC="GNU readline binding for Lua."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/hleuwer/readline/"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="${WEB_SITE}archive/master.zip"
14 SUGGESTED="lua"
15 BUILD_DEPENDS="lua-dev readline-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/hleuwer/readline/commits/master 2>/dev/null | \
21 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 # lua-dev is version 5.2
34 mkdir -p $fs/usr/lib/lua/5.2
35 cp -a $src/Release/readline.so $fs/usr/lib/lua/5.2
36 }