SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "deluge"

# SliTaz package receipt.

PACKAGE="deluge"
VERSION="1.3.15"
CATEGORY="network"
SHORT_DESC="A bittorrent client written with python and pygtk"
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL3"
WEB_SITE="https://deluge-torrent.org/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://ftp.osuosl.org/pub/deluge/source/${VERSION%.*}/$TARBALL"

DEPENDS="libtorrent-rasterbar pyopenssl python-chardet python-xdg \
twisted xdg-utils pygtk python-six"
BUILD_DEPENDS="python-dev python-setuptools librsvg-dev intltool"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/deluge-torrent/deluge/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    LC_ALL=C python setup.py build
    LC_ALL=C python setup.py install \
        --prefix=/usr \
        --root=$DESTDIR \
        --optimize=1
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share
    cp -a $install/usr/lib $fs/usr
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/share/applications $fs/usr/share
    cp -a $install/usr/share/pixmaps $fs/usr/share
    sed -i 's|deluge.svg|deluge.png|g' $fs/usr/lib/python2.7/site-packages/deluge/ui/gtkui/common.py
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)