void-packages/srcpkgs/deluge/template
2017-03-18 01:57:07 +01:00

51 lines
1.4 KiB
Bash

# Template file for 'deluge'
pkgname=deluge
version=1.3.14
revision=3
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=2167376518ed888b7c8b0f2d81db175c688745692a97d872aad91df00c20991b
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
}
}