SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pan"

# SliTaz package receipt.

PACKAGE="pan"
VERSION="0.134"
CATEGORY="network"
SHORT_DESC="pan is a usenet newsreader"
MAINTAINER="allan316@gmail.com"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://pan.rebelbase.com"
WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL"

DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base"
BUILD_DEPENDS="intltool gmime-dev"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    # apply debian fix for gcc 4.4.0
    # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504900
    while read file last; do
        grep -q 'include <cstdio>' pan/$file ||
        sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
    done <<EOT
general/log.cc        cstdarg
general/progress.cc    cstdarg
tasks/nntp.cc        cstdarg
tasks/nntp-pool.cc    config.h
usenet-utils/numbers.cc    cctype
EOT
    ./configure \
        --prefix=/usr \
        $CONFIGURE_ARGS &&
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $_pkg/usr/share/applications $fs/usr/share
    cp -a $_pkg/usr/share/pixmaps $fs/usr/share
}

3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)