SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lua5.4"

# SliTaz package receipt.

PACKAGE="lua5.4"
SOURCE="lua"
VERSION="5.4.2"
CATEGORY="development"
SHORT_DESC="Powerful, fast, light-weight, embeddable scripting language."
DEPENDS="readline ncurses"
BUILD_DEPENDS="readline-dev"
MAINTAINER="shann@slitaz.org"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.lua.org"
WGET_URL="$WEB_SITE/ftp/$TARBALL"
HOST_ARCH="i486 x86_64"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    sed -i "s#/usr/local/#/usr/#" src/luaconf.h
    sed -i "s/-O2/-Os -march=nocona/" src/Makefile
    make linux MYLIBS=/lib/libtic.so

    # lua.pc
    make pc > lua.pc &&
    sed -i "s#/local##g" lua.pc &&
    make install \
        INSTALL_TOP=$DESTDIR/usr \
        INSTALL_MAN=$DESTDIR/usr/share/man/man1
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp -a $install/usr/bin $fs/usr
}
6107 packages and 261132 files in current database (Mon Jul 7 00:01:25 2025)