SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "uget"

# SliTaz package receipt.

PACKAGE="uget"
VERSION="2.2.3"
CATEGORY="network"
SHORT_DESC="Download manager using gtk+ and libcurl."
MAINTAINER="devl547@gmail.com"
LICENSE="LGPL2.1"
WEB_SITE="https://web.archive.org/web/20220621150801/https://sourceforge.net/projects/urlget/"

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

SUGGESTED="uget-lang"
DEPENDS="curl glib gtk+3 pcre"
BUILD_DEPENDS="curl-dev glib-dev gtk+3-dev intltool pcre-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    # 2.2.3 unrecognised:
    #    --with-gtk3

    ./configure            \
        --prefix=/usr        \
        --sysconfdir=/etc    \
        --disable-gstreamer    \
        --disable-notify    \
        $CONFIGURE_ARGS        \
        LDFLAGS='-Wl,-O1 -Wl,--as-needed' &&
    make -s &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_folders    icons
    cook_copy_folders    sounds
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)