blob: 21d7f3b16edf5942b54e45aeba82e6f9c9045f2c (
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
|
# Maintainer: Tom Hacohen <tom@stosb.com>
# Contributor: David Runge <dave@sleepmap.de>
pkgname=etesync-dav
pkgver=0.33.0
pkgrel=2
pkgdesc="A CalDAV and CardDAV adapter for EteSync"
arch=('any')
url="https://github.com/etesync/etesync-dav/"
license=('GPL')
depends=(
'python-setuptools'
'python-appdirs'
'python-etesync'
'python-etebase'
'radicale>=3.0.0'
'python-flask'
'python-flask-wtf'
)
replaces=('python-radicale-storage-etesync')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
"add-missing-comma-in-setup.py.patch")
sha256sums=('dcc85d168fe74c0350991dca45788b93100460bc23339432ca836165adc47c5e'
'98d3d69d368eedd073245ac0943882455405e519304044e2b571f97bc8487954')
prepare() {
cd "${pkgname}-${pkgver}"
patch -p1 < "$srcdir/add-missing-comma-in-setup.py.patch"
}
build() {
cd "${pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -t "${pkgdir}/usr/share/doc/${pkgname}" \
-vDm644 {DESCRIPTION.rst,README.md}
install -Dm644 examples/systemd-user/etesync-dav.service "${pkgdir}/usr/lib/systemd/user/etesync-dav.service"
}
|