SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "atftp"

# SliTaz package receipt.

PACKAGE="atftp"
VERSION="0.7.5"
CATEGORY="network"
SHORT_DESC="Advanced Trivial File Transport Protocol client."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://sourceforge.net/projects/atftp/"

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

DEPENDS="ncurses readline"
BUILD_DEPENDS="pcre-dev readline-dev"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/atftp/files/ 2>/dev/null | \
    sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
}

# Rules to configure and make the package.
compile_rules()
{
    # 0.7
#    sed -i  -e 's/char \*__entry) __THROW/char *__entry))/' \
#        -e 's/^_*argz_next/__NTH(&/' argz.h

    sed -i 's|CLK_TCK|CLOCKS_PER_SEC|'    stats.c

    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)