SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gftp"

# SliTaz package receipt.

PACKAGE="gftp"
VERSION="2.9.1b"
CATEGORY="network"
SHORT_DESC="Small and fast FTP client."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.gftp.org/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/masneyb/$PACKAGE/archive/refs/tags/$VERSION.tar.gz"

SUGGESTED="gftp-lang"
DEPENDS="gtk+ libxml2 libssl xorg-libXdamage"
BUILD_DEPENDS="automake gtk+-dev libxml2-dev openssl-dev pkg-config"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/masneyb/gftp/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./autogen.sh &&
    ./configure            \
        --prefix=/usr        \
        --mandir=/usr/share/man    \
        --disable-textport    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

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

    cp -a $install/usr/bin/gftp    $fs/usr/bin
    cp -a $install/usr/bin/gftp-gtk    $fs/usr/bin
    cp -a $install/usr/share/gftp    $fs/usr/share
    chmod 755            $fs/usr/bin/gftp

    # Copy custom bookmarks file and remove license, big logo.
    cp -a $stuff/bookmarks        $fs/usr/share/gftp
    cp -a $stuff/gftp        $fs/usr/share
    cp -a $stuff/gftp.desktop    $fs/usr/share/applications
    ln -sf /usr/share/gftp/gftp-mini-logo.xpm \
                    $fs/usr/share/gftp/gftp-logo.xpm
    rm -f                $fs/usr/share/gftp/COPYING
    rm -f                $fs/usr/share/gftp/gftp.xpm
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)