summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd6baf7b2a28ca1848a19ed81cdf628e8ae21d72 (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
# Maintainer: getzze <getzze@gmail.com>

pkgname=deluge-labelplus
pkgver=0.3.2.5
pkgrel=1
pkgdesc="LabelPlus is a plugin for Deluge for labeling torrent, with much more functionalities that the builtin Labels."
arch=('any')
## Set to fork until included upstream
url="https://github.com/laur89/deluge-labelplus"
#url="https://github.com/bdutro/deluge-labelplus"
#url="https://github.com/ratanakvlun/deluge-labelplus"
license=(GPL3)
depends=('deluge')
makedepends=('python-setuptools')
source=("$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('63c22bb90a15ffe779378ffb6e73280fc88a26c6b9a1515013d652a58cf5dd42')


build() {
    cd "${srcdir}/$pkgname-$pkgver"
    python setup.py bdist_egg
}

package() {
    cd "${srcdir}/$pkgname-$pkgver"/dist
    local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
    install -Dm644 "LabelPlus-$pkgver.egg" "${pkgdir}/usr/lib/python${_pyver}/site-packages/deluge/plugins/LabelPlus-$pkgver-py${_pyver}.egg"
}