blob: e8148c45fef25c0ee9ce2123ec8dbae535aacdc3 (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: S. Leduc <sebastien@sleduc.fr>
# Contributor: redfish <redfish@galactica.pw>
# Contributor: Amr Hassan <amr.hassan@gmail.com>
# Contributor: Nathan Owe <ndowens.aur at gmail dot com>
# Contributor: G. Richard Bellamy <rbellamy@pteradigm.com>
## Using the tarball from PyPI because it's smaller, thus easier on bandwidth
pkgname=flexget
_pkgname=FlexGet
pkgver=3.5.15
pkgrel=1
pkgdesc='Multipurpose automation tool for downloading media content from different sources'
arch=('any')
url='https://github.com/flexget/flexget'
license=('MIT')
depends=(
'python-apscheduler'
'python-beautifulsoup4'
'python-cherrypy'
'python-colorama'
'python-feedparser'
'python-flask'
'python-flask-compress'
'python-flask-cors'
'python-flask-login'
'python-flask-restful'
'python-flask-restx'
'python-guessit'
'python-html5lib'
'python-jinja'
'python-jsonschema'
'python-loguru'
'python-packaging'
'python-psutil'
'python-pynzb'
'python-pyparsing'
'python-pyrss2gen'
'python-rebulk'
'python-requests'
'python-rich'
'python-rpyc'
'python-sqlalchemy'
'python-werkzeug'
'python-zxcvbn')
optdepends=(
'python-boto3: SNS output plugin'
'python-rarfile: decompress plugin'
'python-transmissionrpc: Transmission support')
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel')
source=(
"$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/F/$_pkgname/$_pkgname-$pkgver.tar.gz"
'flexget.service'
'flexget@.service')
sha256sums=('2ad4c2d93a8716e66a9506c425f0559929956340289fb64d22af1e11fb9da7b9'
'e2c3a958ed0c286337cd37fba1d6cbdf4306c57fcddf2b9cc43615ce80ae83aa'
'aceecee5496a34c14c12ed5ad8b97197de32896f358b5aef63a84bf4a419756a')
prepare() {
cd "$_pkgname-$pkgver"
# Remove specific versions, because they are not going to match
# versions of Arch packages. Yes, this might break something.
sed -i 's/[=<~]=.*//g' requirements.txt
## zxcvbn-python has been renamed zxcvbn
sed -i 's/zxcvbn-python/zxcvbn/' requirements.txt
# Prebuilt egg-info erroneously includes tests in final package
rm -rf "$_pkgname.egg-info"
}
build() {
cd "$_pkgname-$pkgver"
# Build wheel according to new Python packaging guidelines
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname-$pkgver"
# Install wheel according to new Python packaging guidelines
python -m installer --destdir="$pkgdir" dist/*.whl
# Symlink license instead of installing a copy
local _site="$(python -c 'import site; print(site.getsitepackages()[0])')"
install -dv "$pkgdir/usr/share/licenses/$pkgname/"
ln -sv "$_site/$_pkgname-$pkgver.dist-info/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
# install systemd user unit
install -Dvm644 "$srcdir/$pkgname"{,@}.service -t "$pkgdir/usr/lib/systemd/user/"
}
# vim:set ts=2 sw=2 et:
|