wok-current annotate 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
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@21104 14 DEPENDS="libtorrent-rasterbar pyopenssl python-chardet python-xdg setuptools \
pascal@21104 15 twisted xdg-utils pygtk python-six"
pascal@21580 16 BUILD_DEPENDS="python-dev python-setuptools librsvg-dev intltool"
slaxemulator@11093 17
slaxemulator@6953 18 # Rules to configure and make the package.
slaxemulator@6953 19 compile_rules()
slaxemulator@6953 20 {
slaxemulator@7514 21 LC_ALL=C python setup.py build
Hans-G?nter@20821 22 LC_ALL=C python setup.py install \
Hans-G?nter@20821 23 --prefix=/usr \
Hans-G?nter@20821 24 --root=$DESTDIR \
Hans-G?nter@20821 25 --optimize=1
slaxemulator@6953 26 }
slaxemulator@6953 27
slaxemulator@6953 28 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6953 29 genpkg_rules()
slaxemulator@6953 30 {
slaxemulator@6953 31 mkdir -p $fs/usr/share
pascal@14997 32 cp -a $install/usr/lib $fs/usr
pascal@14997 33 cp -a $install/usr/bin $fs/usr
pascal@14997 34 cp -a $install/usr/share/applications $fs/usr/share
pascal@14997 35 cp -a $install/usr/share/pixmaps $fs/usr/share
slaxemulator@6953 36 sed -i 's|deluge.svg|deluge.png|g' $fs/usr/lib/python2.7/site-packages/deluge/ui/gtkui/common.py
slaxemulator@6953 37 }