wok annotate uget/receipt @ rev 25054

Up quarry (0.3.0.1), sunxi-tools (1.4.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 06 08:51:13 2022 +0000 (2022-06-06)
parents 095836df71b7
children ca38ecbe9976
rev   line source
devl547@6042 1 # SliTaz package receipt.
devl547@6042 2
devl547@6042 3 PACKAGE="uget"
Hans-G?nter@22073 4 VERSION="2.2.1"
slaxemulator@6147 5 CATEGORY="network"
Hans-G?nter@22073 6 SHORT_DESC="Download manager using gtk+ and libcurl."
devl547@6042 7 MAINTAINER="devl547@gmail.com"
pascal@14996 8 LICENSE="LGPL2.1"
pascal@24894 9 WEB_SITE="https://sourceforge.net/projects/urlget/"
Hans-G?nter@22073 10
devl547@6042 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
devl547@6042 12 WGET_URL="$SF_MIRROR/urlget/$TARBALL"
devl547@6042 13
Hans-G?nter@22073 14 DEPENDS="curl glib gtk+3 pcre"
Hans-G?nter@22073 15 BUILD_DEPENDS="curl-dev glib-dev gtk+3-dev intltool pcre-dev"
pascal@14996 16
pascal@24304 17 # What is the latest version available today?
pascal@24304 18 current_version()
pascal@24304 19 {
pascal@24326 20 wget --no-check-certificate -O - ${WEB_SITE}downloads/ 2>/dev/null | \
pascal@24304 21 sed '/Latest Stable/!d;s|.*sion: ||;s|<.*||'
pascal@24304 22 }
pascal@24304 23
devl547@6042 24 # Rules to configure and make the package.
devl547@6042 25 compile_rules()
devl547@6042 26 {
Hans-G?nter@22073 27 ./configure \
Hans-G?nter@22073 28 --prefix=/usr \
Hans-G?nter@22073 29 --sysconfdir=/etc \
Hans-G?nter@22073 30 --disable-gstreamer \
Hans-G?nter@22073 31 --disable-notify \
Hans-G?nter@22073 32 --with-gtk3 \
Hans-G?nter@22073 33 $CONFIGURE_ARGS \
devl547@6042 34 LDFLAGS='-Wl,-O1 -Wl,--as-needed' &&
devl547@6042 35 make -j2 -s &&
slaxemulator@12314 36 make DESTDIR=$DESTDIR install
devl547@6042 37 }
devl547@6042 38
devl547@6042 39 # Rules to gen a SliTaz package suitable for Tazpkg.
devl547@6042 40 genpkg_rules()
devl547@6042 41 {
devl547@6042 42 mkdir -p $fs/usr/share
Hans-G?nter@22073 43
Hans-G?nter@22073 44 cp -a $install/usr/bin $fs/usr/
Hans-G?nter@22073 45 cp -a $install/usr/share/applications/ $fs/usr/share
Hans-G?nter@22073 46 cp -a $install/usr/share/icons/ $fs/usr/share
Hans-G?nter@22073 47 cp -a $install/usr/share/sounds/ $fs/usr/share
devl547@6042 48 }