blob: d9f39f94d88b4a727ced6b1c5388f3291d887f21 (
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
|
# Maintainer: Jeremy Gust <jeremy AT plasticsoup DOT net>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Batuhan Baserdem <lastname dot firstname at gmail>
pkgname=maestral
pkgver=1.9.4
pkgrel=1
pkgdesc='A light-weight and open-source Dropbox client'
arch=('any')
url="https://github.com/SamSchott/maestral"
license=('MIT')
depends=('hicolor-icon-theme'
'python'
'python-click'
'python-desktop-notifier'
'python-dropbox'
'python-fasteners'
'python-importlib-metadata'
'python-keyring'
'python-keyrings-alt'
'python-packaging'
'python-pathspec'
'python-pyro5'
'python-requests'
'python-rich'
'python-survey'
'python-typing_extensions'
'python-watchdog'
'python-xattr')
makedepends=('python-build'
'python-installer'
'python-setuptools'
'python-sphinx'
'python-sphinx-autoapi'
'python-sphinx_mdinclude'
'python-sphinx_rtd_theme'
'python-sphinxext-opengraph'
'python-wheel')
checkdepends=('python-pytest')
optdepends=('maestral-qt: Qt interface for the maestral daemon'
'python-systemd: Syslog support')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('bb03ff59418a35786ef1c5a5ac0c66bb67390fdab8ebee011f1f8ba151677789')
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
cd docs
sphinx-build -b man ./ ./_build/man/
}
check() {
cd "$pkgname-$pkgver"
PYTHONPATH=src/ pytest -k 'not test_autostart and not benchmark' -x --disable-warnings
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="${pkgdir}/" dist/*.whl
install -Dvm644 README.md -t "${pkgdir}/usr/share/doc/$pkgname/"
install -Dvm644 docs/_build/man/maestral.1 -t "${pkgdir}/usr/share/man/man1/"
install -Dvm644 LICENSE.txt "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
|