# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=radicale pkgver=2.1.10 pkgrel=2 pkgdesc="A simple CalDAV (calendar) and CardDAV (contact) server" url="http://radicale.org" arch="noarch" license="GPL-3.0-or-later" depends="python3 py3-vobject py3-dateutil py3-setuptools" # py3-setuptools required for "from pkg_resources import load_entry_point" makedepends="py-setuptools" pkgusers="radicale" pkggroups="radicale" install="$pkgname.pre-install" options="!check" # no test suite source="https://files.pythonhosted.org/packages/source/R/Radicale/Radicale-$pkgver.tar.gz $pkgname.initd" subpackages="$pkgname-openrc" builddir="$srcdir/Radicale-$pkgver" build() { cd "$builddir" python3 setup.py build } package() { cd "$builddir" python3 setup.py install --skip-build --prefix=/usr \ --root="$pkgdir" install -d "$pkgdir"/etc/radicale install -m640 -g radicale config "$pkgdir"/etc/radicale/ install -m640 -g radicale logging "$pkgdir"/etc/radicale/ install -d -o radicale "$pkgdir"/var/lib/radicale \ "$pkgdir"/var/log/radicale install -Dm755 "$srcdir"/radicale.initd \ "$pkgdir"/etc/init.d/radicale } sha512sums="30fac6639e56bbd10664330d84ebba28b34005b4b4b4c5a6c22f53cb7e810ba4961cbd314e62fe33538674a2d4b45f14751f36ef5fa2ae2b7d44c1b1158f6e1c Radicale-2.1.10.tar.gz dd0e7641687592f5b6b053c6f7170bd81747467db690827906826684b8cafd3de9a065d5389d6f3beb5e02fa6ba6daf2bcd77022ec1505dc88abc2e8f6b17a57 radicale.initd"