SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "putty"

# SliTaz package receipt.

PACKAGE="putty"
VERSION="0.73"
CATEGORY="utilities"
TAGS="ssh telnet"
SHORT_DESC="A free telnet and SSH client."
MAINTAINER="rcx@zoominternet.net"
LICENSE="MIT"
WEB_SITE="https://www.chiark.greenend.org.uk/~sgtatham/putty/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="http://the.earth.li/~sgtatham/putty/$VERSION/$TARBALL"

DEPENDS="atk cairo expat fontconfig freetype glib glibc-base gtk+ krb5 \
    libcomerr3 libgio libpng libxcb pango pixman xcb-util xorg-libX11 \
    xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
    xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \
    xorg-libXrender zlib"
BUILD_DEPENDS="gtk+-dev imagemagick krb5-dev libltdl openexr perl py3k"

# 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()
{
    cd $src/icons &&
    sed -i 's|:- %s|& 2>/dev/null|' mkicon.py

    make &&
    make install &&
    mkdir -p $DESTDIR/usr/share/pixmaps &&
    cp $src/icons/pterm-48.png $DESTDIR/usr/share/pixmaps/pterm.png &&
    cp $src/icons/putty-48.png $DESTDIR/usr/share/pixmaps/putty.png &&
    
    cd $src/unix &&
    sed -e 's/-Werror//g' -i configure &&
    ./configure $CONFIGURE_ARGS &&
    make XFLAGS=-DTELNET_DEFAULT &&
    make install
}

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

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