[arch-commits] Commit in deluge/trunk (PKGBUILD deluge.install)
Jan Steffens
heftig at archlinux.org
Thu Jul 7 20:27:01 UTC 2016
Date: Thursday, July 7, 2016 @ 20:27:00
Author: heftig
Revision: 271149
1.3.12+73+g5f92810-1
Modified:
deluge/trunk/PKGBUILD
deluge/trunk/deluge.install
----------------+
PKGBUILD | 32 ++++++++++++++++++++------------
deluge.install | 12 ------------
2 files changed, 20 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-07-07 20:20:49 UTC (rev 271148)
+++ PKGBUILD 2016-07-07 20:27:00 UTC (rev 271149)
@@ -4,38 +4,46 @@
# Contributor: Hugo Doria <hugo at archlinux.org>
pkgname=deluge
-pkgver=1.3.12
+pkgver=1.3.12+73+g5f92810
pkgrel=1
pkgdesc="A BitTorrent client with multiple user interfaces in a client/server model"
-arch=('any')
+arch=(any)
url="http://deluge-torrent.org/"
-license=('GPL3')
+license=(GPL3)
depends=(python2-xdg libtorrent-rasterbar python2-twisted python2-pyopenssl
python2-chardet python2-setuptools)
-makedepends=(intltool pygtk librsvg python2-mako)
+makedepends=(intltool pygtk librsvg python2-mako git)
optdepends=('python2-notify: libnotify notifications'
'pygtk: needed for gtk ui'
'librsvg: needed for gtk ui'
'python2-mako: needed for web ui')
install=deluge.install
-source=(http://download.deluge-torrent.org/source/$pkgname-$pkgver.tar.lzma
+_commit=5f92810f761e7df7b1f03e916535ad8b4ce6c08c
+source=("git://git.deluge-torrent.org/deluge.git#commit=$_commit"
deluged.service deluge-web.service)
-md5sums=('56f5c1cd3f671fecc58a9168f5bd6d48'
- '17f51ac9a90f0dc41a20291444a7489b'
- '2a73f62c04e8b147c731fbb50666e846')
+sha256sums=('SKIP'
+ '58a451bb6cf4fe6ff78a4fb71d51c5910340a2de032ff435c3c7365015ab538f'
+ 'c3f2d6ad5bc9de5ffd9973d92badbe04a9ecf12c0c575e13d505a96add03275a')
prepare() {
- cd $pkgname-$pkgver
- sed -i '1s/python$/&2/' deluge/ui/Win32IconImagePlugin.py
+ cd $pkgname
+ sed -i '1s/python$/&2/' \
+ deluge/ui/Win32IconImagePlugin.py \
+ deluge/ui/web/gen_gettext.py
}
+pkgver() {
+ cd $pkgname
+ git describe | sed 's/^deluge-//;s/-/+/g'
+}
+
build() {
- cd $pkgname-$pkgver
+ cd $pkgname
python2 setup.py build
}
package() {
- cd $pkgname-$pkgver
+ cd $pkgname
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 ../deluged.service "$pkgdir/usr/lib/systemd/system/deluged.service"
Modified: deluge.install
===================================================================
--- deluge.install 2016-07-07 20:20:49 UTC (rev 271148)
+++ deluge.install 2016-07-07 20:27:00 UTC (rev 271149)
@@ -4,16 +4,4 @@
useradd -c 'Deluge user' -u 125 -g deluge -d /srv/deluge -s /bin/false deluge
passwd -l deluge &>/dev/null
fi
-
- post_upgrade
}
-
-post_upgrade() {
- [[ -x /usr/bin/xdg-icon-resource ]] && xdg-icon-resource forceupdate --theme hicolor
- [[ -x /usr/bin/update-desktop-database ]] && update-desktop-database -q
- return 0
-}
-
-post_remove() {
- post_upgrade
-}
More information about the arch-commits
mailing list