wok view lua-readline/receipt @ rev 25817

Update kernel config for support mmc tablet
author Stanislas Leduc <shann@slitaz.org>
date Mon Mar 03 12:26:15 2025 +0100 (3 months ago)
parents a66f312c374b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lua-readline"
4 VERSION="3.3-0"
5 CATEGORY="development"
6 SHORT_DESC="GNU readline binding for Lua."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://peterbillam.gitlab.io/pjb_lua/lua/readline.html"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="http://luarocks.org/manifests/peterbillam/readline-$VERSION.src.rock"
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 - http://luarocks.org/modules/peterbillam/readline 2>/dev/null | \
21 sed 's|<div|\n&|g' | sed '/readline\/[0-9]/!d;s|.*line/||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 tar xzf readline*.tar.gz
28 cd readline-${VERSION%-*}
29 gcc -MMD -MF ../lreadline.d -c -march=i486 -Os -pipe -fomit-frame-pointer \
30 -I/usr/include/lua5.1 -Icompat-5.1r5 -DCOMPAT_H -DVERSION='"1.0"' \
31 -pedantic -Wall -O2 -fPIC -o ../lreadline.o C-readline.c
32 gcc -O2 -shared -o ../readline.so ../lreadline.o -lreadline -lhistory
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 # lua-dev is version 5.2
39 mkdir -p $fs/usr/lib/lua/5.2
40 cp -a $src/readline.so $fs/usr/lib/lua/5.2
41 }