# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=radicale pkgver=2.1.8 pkgrel=1 pkgdesc="A simple CalDAV (calendar) and CardDAV (contact) server" url="http://radicale.org" arch="noarch" license="GPLv3+" depends="python3 py3-vobject" depends_dev="" makedepends="$depends_dev python3" pkgusers="radicale" pkggroups="radicale" install="$pkgname.pre-install" subpackages="" source="https://files.pythonhosted.org/packages/source/R/Radicale/Radicale-$pkgver.tar.gz $pkgname.initd" builddir="$srcdir"/Radicale-$pkgver prepare() { local i cd "$builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i;; esac done } 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="038bee4114b090bcf873e8a4ec83cbbc7bdd34b4843fd1a769a023c891b589b3a18637d5f8f8595691a7930804ad7695e333bb9df96d00515b7a3695294eb5f7 Radicale-2.1.8.tar.gz dd0e7641687592f5b6b053c6f7170bd81747467db690827906826684b8cafd3de9a065d5389d6f3beb5e02fa6ba6daf2bcd77022ec1505dc88abc2e8f6b17a57 radicale.initd"