wok-current view deluge/receipt @ rev 21580
Use python-setuptools as bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 19 19:07:20 2019 +0200 (2019-05-19) |
parents | 92f3f0b09500 |
children | 5d50a02468c7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="deluge"
4 VERSION="1.3.15"
5 CATEGORY="network"
6 SHORT_DESC="A bittorrent client written with python and pygtk"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://deluge-torrent.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://download.deluge-torrent.org/source/$TARBALL"
14 DEPENDS="libtorrent-rasterbar pyopenssl python-chardet python-xdg setuptools \
15 twisted xdg-utils pygtk python-six"
16 BUILD_DEPENDS="python-dev python-setuptools librsvg-dev intltool"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 LC_ALL=C python setup.py build
22 LC_ALL=C python setup.py install \
23 --prefix=/usr \
24 --root=$DESTDIR \
25 --optimize=1
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share
32 cp -a $install/usr/lib $fs/usr
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/share/applications $fs/usr/share
35 cp -a $install/usr/share/pixmaps $fs/usr/share
36 sed -i 's|deluge.svg|deluge.png|g' $fs/usr/lib/python2.7/site-packages/deluge/ui/gtkui/common.py
37 }