void-packages/srcpkgs/deluge/template
2017-05-21 18:19:00 -07:00

51 lines
1.4 KiB
Bash

# Template file for 'deluge'
pkgname=deluge
version=1.3.15
revision=1
noarch=yes
build_style=python2-module
pycompile_module="deluge"
system_accounts="deluge"
deluge_homedir="/var/lib/deluge"
hostmakedepends="intltool python-setuptools"
depends="python-setuptools python-chardet Twisted python-xdg libtorrent-rasterbar-python"
short_desc="Fully-featured cross-platform BitTorrent client"
maintainer="Alexey Rochev <equeim@gmail.com>"
homepage="http://deluge-torrent.org/"
license="GPL-3"
distfiles="http://download.deluge-torrent.org/source/${pkgname}-${version}.tar.gz"
checksum=2bd239fc7ec0427302677abb86f927299aed4f043eca5d8a1bab2986b3659666
post_install() {
vsv deluged
}
deluge-gtk_package() {
noarch=yes
replaces="deluge<1.3.14_1"
short_desc+=" - GTK+ frontend"
pycompile_module="deluge"
depends="${sourcepkg}-${version}_${revision} pygtk"
pkg_install() {
vmove usr/bin/deluge
vmove usr/bin/deluge-gtk
vmove ${py2_sitelib}/deluge/ui/gtkui
vmove usr/share/applications
vmove usr/share/icons
vmove usr/share/man/man1/deluge.1
vmove usr/share/man/man1/deluge-gtk.1
}
}
deluge-web_package() {
noarch=yes
replaces="deluge<1.3.14_1"
short_desc+=" - Web frontend"
pycompile_module="deluge"
depends="${sourcepkg}-${version}_${revision} python-Mako"
pkg_install() {
vmove usr/bin/deluge-web
vmove ${py2_sitelib}/deluge/ui/web
vmove usr/share/man/man1/deluge-web.1
vsv deluge-web
}
}