From d4c7d643925041cf22b5cc400054d78203193b87 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Thu, 16 Mar 2017 15:38:44 +0100 Subject: [PATCH] deluge: update to 1.3.14 Split off GTK+ and Web interfaces. --- srcpkgs/deluge-gtk | 1 + srcpkgs/deluge-web | 1 + srcpkgs/deluge/template | 38 ++++++++++++++++++++++++++++++++------ 3 files changed, 34 insertions(+), 6 deletions(-) create mode 120000 srcpkgs/deluge-gtk create mode 120000 srcpkgs/deluge-web diff --git a/srcpkgs/deluge-gtk b/srcpkgs/deluge-gtk new file mode 120000 index 00000000000..bd5ea246696 --- /dev/null +++ b/srcpkgs/deluge-gtk @@ -0,0 +1 @@ +deluge \ No newline at end of file diff --git a/srcpkgs/deluge-web b/srcpkgs/deluge-web new file mode 120000 index 00000000000..bd5ea246696 --- /dev/null +++ b/srcpkgs/deluge-web @@ -0,0 +1 @@ +deluge \ No newline at end of file diff --git a/srcpkgs/deluge/template b/srcpkgs/deluge/template index 2c843cb8d8d..93bda54a791 100644 --- a/srcpkgs/deluge/template +++ b/srcpkgs/deluge/template @@ -1,6 +1,6 @@ # Template file for 'deluge' pkgname=deluge -version=1.3.13 +version=1.3.14 revision=1 noarch=yes build_style=python2-module @@ -8,16 +8,42 @@ pycompile_module="deluge" system_accounts="deluge" deluge_homedir="/var/lib/deluge" hostmakedepends="intltool python-setuptools" -makedepends="python-setuptools" -depends="pygtk python-setuptools python-chardet python-xdg Twisted libtorrent-rasterbar-python xdg-utils" -short_desc="BitTorrent client written in Python/PyGTK" +depends="python-setuptools python-chardet Twisted python-xdg libtorrent-rasterbar-python" +short_desc="Fully-featured cross-platform BitTorrent client" maintainer="Alexey Rochev " homepage="http://deluge-torrent.org/" license="GPL-3" distfiles="http://download.deluge-torrent.org/source/${pkgname}-${version}.tar.gz" -checksum=a3717f202e90f548cfcd233a94ca7df3656f58d75e6db0eb17b90d588c814a05 +checksum=2167376518ed888b7c8b0f2d81db175c688745692a97d872aad91df00c20991b post_install() { vsv deluged - vsv deluge-web +} + +deluge-gtk_package() { + 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() { + 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 + } }