wok-6.x annotate deluge/receipt @ rev 24540

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 16:54:57 2022 +0000 (2022-02-23)
parents 5d50a02468c7
children 00e3b45c063b
rev   line source
slaxemulator@6953 1 # SliTaz package receipt.
slaxemulator@6953 2
slaxemulator@6953 3 PACKAGE="deluge"
Hans-G?nter@20821 4 VERSION="1.3.15"
slaxemulator@6953 5 CATEGORY="network"
slaxemulator@6953 6 SHORT_DESC="A bittorrent client written with python and pygtk"
slaxemulator@6953 7 MAINTAINER="slaxemulator@gmail.com"
pascal@14997 8 LICENSE="GPL3"
Hans-G?nter@20821 9 WEB_SITE="https://deluge-torrent.org/"
Hans-G?nter@20821 10
slaxemulator@6953 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@6953 12 WGET_URL="http://download.deluge-torrent.org/source/$TARBALL"
slaxemulator@6953 13
pascal@21581 14 DEPENDS="libtorrent-rasterbar pyopenssl python-chardet python-xdg \
pascal@21104 15 twisted xdg-utils pygtk python-six"
pascal@21580 16 BUILD_DEPENDS="python-dev python-setuptools librsvg-dev intltool"
slaxemulator@11093 17
pascal@24540 18 # What is the latest version available today?
pascal@24540 19 current_version()
pascal@24540 20 {
pascal@24540 21 wget -O - https://github.com/deluge-torrent/deluge/tags 2>/dev/null | \
pascal@24540 22 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
pascal@24540 23 }
pascal@24540 24
slaxemulator@6953 25 # Rules to configure and make the package.
slaxemulator@6953 26 compile_rules()
slaxemulator@6953 27 {
slaxemulator@7514 28 LC_ALL=C python setup.py build
Hans-G?nter@20821 29 LC_ALL=C python setup.py install \
Hans-G?nter@20821 30 --prefix=/usr \
Hans-G?nter@20821 31 --root=$DESTDIR \
Hans-G?nter@20821 32 --optimize=1
slaxemulator@6953 33 }
slaxemulator@6953 34
slaxemulator@6953 35 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6953 36 genpkg_rules()
slaxemulator@6953 37 {
slaxemulator@6953 38 mkdir -p $fs/usr/share
pascal@14997 39 cp -a $install/usr/lib $fs/usr
pascal@14997 40 cp -a $install/usr/bin $fs/usr
pascal@14997 41 cp -a $install/usr/share/applications $fs/usr/share
pascal@14997 42 cp -a $install/usr/share/pixmaps $fs/usr/share
slaxemulator@6953 43 sed -i 's|deluge.svg|deluge.png|g' $fs/usr/lib/python2.7/site-packages/deluge/ui/gtkui/common.py
slaxemulator@6953 44 }