summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fae502a145d6e8491c3fd9c2e5c2d979b0d38e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>
# PKGBUILD based on extra\deluge's PKGBUILD, adapted for -git version by Berseker

pkgname=deluge-git
pkgver=2.0.0.dev726
pkgrel=1
pkgdesc="A bittorrent client written with python and pygtk - Git Version"
arch=('any')
url="http://deluge-torrent.org"
license=('GPL3')
conflicts=('deluge' 'deluge-stable-git')
provides=('deluge')
install='deluge.install'

depends=('desktop-file-utils'
         'hicolor-icon-theme'
         'libtorrent-rasterbar'
         'python2-service-identity'
         'python2-chardet'
         'python2-pyopenssl'
         'python2-xdg'
         'python2-twisted'
         'xdg-utils')

makedepends=('intltool'
             'librsvg'
             'pygtk'
             'python2-mako'
             'python2-setuptools'
             'git'
             'python2-jsmin')

optdepends=('python2-pillow'
            'librsvg: needed for gtk ui'
            'pygtk: needed for gtk ui'
            'python2-mako: needed for web ui'
            'python2-notify: libnotify notifications'
            'geoip: display peer locations')

source=("git+https://github.com/deluge-torrent/deluge.git#branch=develop"
        'deluged.service' 'deluge-web.service')

md5sums=('SKIP'
         '17f51ac9a90f0dc41a20291444a7489b'
         '2a73f62c04e8b147c731fbb50666e846')

pkgver() {
    cd "$srcdir/deluge"
    #git log -1 --format="%cd" --date=short | tr -d '-'
    python2 version.py
}

prepare() {
    cd "$srcdir/deluge/deluge/ui/data/icons"
    ln -sf hicolor/scalable scalable
}

build() {
    cd "$srcdir/deluge"
    python2 setup.py build
    python2 minify_web_js.py deluge/ui/web/js/deluge-all
}

package() {
    cd "$srcdir/deluge"
    python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1

    install -d     "$pkgdir/srv"
    install -dm664 "$pkgdir/srv/deluge"
    install -Dm644 "deluge/ui/data/pixmaps/deluge.svg" "$pkgdir/usr/share/pixmaps/deluge.svg"
    install -Dm644 "$srcdir/deluged.service"           "$pkgdir/usr/lib/systemd/system/deluged.service"
    install -Dm644 "$srcdir/deluge-web.service"        "$pkgdir/usr/lib/systemd/system/deluge-web.service"
}