SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "slang"

# SliTaz package receipt.

PACKAGE="slang"
VERSION="2.3.2"
CATEGORY="development"
SHORT_DESC="S-Lang library."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
WEB_SITE="http://jedsoft.org/slang/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="http://jedsoft.org/releases/$PACKAGE/$TARBALL"

DEPENDS="libpng pcre zlib"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure --prefix=/usr $CONFIGURE_ARGS &&
    make -j1 &&
    make -j1 elf &&
    make -j1 static &&
    make -j1 DESTDIR=$DESTDIR install install-static
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    cp -a $install/usr/lib/slang    $fs/usr/lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)