SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "swig"

# SliTaz package receipt.

PACKAGE="swig"
VERSION="4.0.2"
CATEGORY="development"
TAGS="compiler"
MAINTAINER="maintainer@slitaz.org"
LICENSE="GPL3"
SHORT_DESC="A compiler that makes it easy to integrate C and C++ code with scripting languages."
WEB_SITE="https://www.swig.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="gcc-lib-base pcre zlib"
BUILD_DEPENDS="pcre-dev pkg-config zlib-dev"

current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/released/!d;s|.*SWIG-||;s| .*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure        \
        --prefix=/usr    \
        $CONFIGURE_ARGS &&
    make &&
    make install
}
    
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/share/$PACKAGE    $fs/usr/share
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)