1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Hugo Doria <hugo@archlinux.org>
6 pkgname=(deluge deluge-gtk)
10 pkgdesc="BitTorrent client with multiple user interfaces in a client/server model"
11 url="https://deluge-torrent.org/"
16 'python-twisted>=17.1' python-service-identity python-idna
19 'python-rencode>=1.0.2'
21 'python-zope-interface>=4.4.2'
28 'libtorrent-rasterbar>=1.1.1'
47 _tag=bad29eb302ebaae8306fc2ecf4a953926d401173 # tags/deluge-2.1.1
48 source=("git+https://git.deluge-torrent.org/deluge?signed#tag=$_tag")
50 validpgpkeys=(EA01185D0E8AA00D6323A30890597A687B836BA3) # Calum Lind <calumlind@gmail.com>
54 git describe --tags | sed 's/^deluge-//;s/\.dev0-/dev/;s/[^-]*-g/r&/;s/-/+/g'
67 local p="$1" f d; shift
69 d="$srcdir/$p/${f#$pkgdir/}"
70 mkdir -p "$(dirname "$d")"
72 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
78 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
80 install -Dt "$pkgdir/usr/lib/systemd/system" \
81 -m644 packaging/systemd/*.service
82 install -Dt "$pkgdir/usr/lib/systemd/user" \
83 -m644 packaging/systemd/user/*.service
84 install -Dt "$pkgdir/usr/lib/systemd/system/deluged.service.d" \
85 -m644 packaging/systemd/user.conf
86 install -Dt "$pkgdir/usr/lib/systemd/system/deluge-web.service.d" \
87 -m644 packaging/systemd/user.conf
89 echo 'u deluge - "Deluge BitTorrent daemon" /srv/deluge' |
90 install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
91 echo 'd /srv/deluge 0770 deluge deluge' |
92 install -Dm644 /dev/stdin "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
96 _pick gtk usr/bin/deluge-gtk usr/share/man/man1/deluge-gtk.1
97 _pick gtk usr/share/{appdata,applications,icons,pixmaps}
99 local sitedir="$(python -c 'import site; print(site.getsitepackages()[0])')"
100 _pick gtk "${sitedir#/}"/deluge/ui/gtk3
103 package_deluge-gtk() {
104 pkgdesc="GTK UI for Deluge"
106 "deluge=$epoch:$pkgver-$pkgrel"
114 'libappindicator-gtk3: appindicator notifications'
115 'python-pygame: audible notifications'
116 'libnotify: desktop notifications'
118 replaces=('deluge<2.0.4.dev23+g2f1c008a2-2')
123 # vim:set sw=2 sts=-1 et: