SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lua-readline"

# SliTaz package receipt.

PACKAGE="lua-readline"
GITHASH="849af12564a00f0db43080a4a542aa1c20a677e2"
VERSION="20190930"
CATEGORY="development"
SHORT_DESC="GNU readline binding for Lua."
MAINTAINER="maintainer@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://github.com/hleuwer/readline/"

TARBALL="$PACKAGE-$VERSION.zip"
WGET_URL="${WEB_SITE}archive/$GITHASH.zip"

SUGGESTED="lua"
BUILD_DEPENDS="lua-dev readline-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/hleuwer/readline/commits/master 2>/dev/null | \
    sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    # lua-dev is version 5.2
    mkdir -p $fs/usr/lib/lua/5.2
    cp -a $src/Release/readline.so    $fs/usr/lib/lua/5.2
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)