aboutsummaryrefslogtreecommitdiffstats
path: root/testing/radicale/APKBUILD
blob: 37f4d7f6dbb089cd34223ac88b12992f1a4f0ba0 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=radicale
pkgver=2.1.9
pkgrel=1
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"
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="68e1b257560e4954f83f599ab111e4507af5507d4ddd57691a44bb4979c42e84ee3fe77613447ca95f46b440775a38a1c0a0c70de00f8cf3370625fd0ee58249  Radicale-2.1.9.tar.gz
dd0e7641687592f5b6b053c6f7170bd81747467db690827906826684b8cafd3de9a065d5389d6f3beb5e02fa6ba6daf2bcd77022ec1505dc88abc2e8f6b17a57  radicale.initd"