SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lua-readline"

# SliTaz package receipt.

PACKAGE="lua-readline"
VERSION="1.0"
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/master.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 '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
}

# 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
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)