SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wxdfast"

# SliTaz package receipt.

PACKAGE="wxdfast"
VERSION="0.6.0"
CATEGORY="network"
SHORT_DESC="Download Manager."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
TARBALL="${PACKAGE}_${VERSION}.tar.gz"
WEB_SITE="https://dfast.sourceforge.net/index.html"
WGET_URL="$SF_MIRROR/dfast/$TARBALL"

DEPENDS="wxWidgets28 xorg-libXdamage xorg-libXxf86vm"
BUILD_DEPENDS="wxWidgets28-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/dfast/files/wxDownload%20Fast/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/wxDownload%20Fast/||;s|/.*||;q'
}

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

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

    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/share/wxdfast $fs/usr/share
    cp -a $install/usr/share/locale/fr $fs/usr/share/locale
    cp -a $install/usr/share/pixmaps $fs/usr/share
    cp -a $install/usr/share/applications $fs/usr/share
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)