SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "fcgi"

# SliTaz package receipt.

PACKAGE="fcgi"
VERSION="2.4.2"
CATEGORY="development"
TAGS="CGI"
SHORT_DESC="Fast CGI binary and library."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://fastcgi-archives.github.io/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/FastCGI-Archives/${PACKAGE}2/archive/$VERSION.tar.gz"

DEPENDS="gcc83-lib-base"
BUILD_DEPENDS="autoconf automake gcc83 libtool"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # Gcc4 fix from Gentoo (http://bugs.gentoo.org/256654)
#    busybox patch -p0 -i $stuff/fcgi-2.4.0_gcc4.u
    
    ./autogen.sh &&
    ./configure                \
        CC=gcc-83            \
        CXX=g++-83            \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make -j1 &&
    make DESTDIR=$DESTDIR install
}

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

    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    cp -a $install/usr/bin        $fs/usr
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)