summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36a771b0cfbf4847782b30fd100f05cc21cfcd37 (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
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>

pkgname=xandikos-git
_name=${pkgname%-git}
pkgver=0.2.10.r1.g5b98fc8
pkgrel=1
pkgdesc='Lightweight yet complete CardDAV/CalDAV server that backs onto a Git repository'
arch=('any')
url=https://www.xandikos.org
license=('GPL3')
depends=(
  'python-aiohttp'
  'python-defusedxml'
  'python-dulwich'
  'python-icalendar'
  'python-jinja'
  'python-multidict'
  'python-vobject'
)
makedepends=(
  'git'
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
optdepends=(
  'python-aiohttp-openmetrics: for metrics with the standalone server'
  'python-systemd: for systemd socket activation'
  'uwsgi-plugin-python: for the WSGI interface'
)
provides=("$_name")
conflicts=("$_name")
source=(
  "git+https://github.com/jelmer/$_name.git"
  "$_name.sysusers.conf"
  "$_name.tmpfiles.conf"
)
b2sums=('SKIP'
        '086423882a085cb7fbecad3f53ad60aa6c322a545c180fe8b4c9f2bba5331fa52d6fc3e96ec068c589d3ab3e0b8f215e1a94473c511560188bd873b7ff5780d6'
        'be8df371a3cdd55e2efd4549251b44cbb5699762f14aa3dcb0e85cdbb3710d75fae8e38b615057f6da37fe744019aabc2c366136ca577a152cd03d380db189c2')
#validpgpkeys=('DC837EE14A7E37347E87061700806F2BD729A457') # Jelmer Vernooij <jelmer@jelmer.uk>

pkgver() {
  cd "$_name"
  git describe --long --tags --match v\* | sed 's/v//;s/-/.r/;s/-/./'
}

build() {
  cd "$_name"
  python -m build --wheel --skip-dependency-check --no-isolation
}

check() {
  cd "$_name"
  make check
}

package() {
  install -Dm644 "$_name".sysusers.conf \
    "$pkgdir"/usr/lib/sysusers.d/"$_name".conf
  install -Dm644 "$_name".tmpfiles.conf \
    "$pkgdir"/usr/lib/tmpfiles.d/"$_name".conf

  cd "$_name"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 -t "$pkgdir"/usr/share/doc/"$_name" README.rst
  install -Dm644 -t "$pkgdir"/usr/share/doc/"$_name"/examples examples/*
  install -Dm644 -t "$pkgdir"/usr/share/man/man8 man/"$_name".8
}