aboutsummaryrefslogtreecommitdiffstats
path: root/testing/radicale/APKBUILD
blob: 2ea9a790f6a2971f071f42cbdfec296a4c91a44c (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=radicale
pkgver=1.0.1
pkgrel=0
pkgdesc="A simple CalDAV (calendar) and CardDAV (contact) server"
url="http://radicale.org"
arch="noarch"
license="GPLv3+"
depends="python"
depends_dev=""
makedepends="$depends_dev python py-setuptools"
pkgusers="radicale"
pkggroups="radicale"
install="$pkgname.pre-install"
subpackages=""
source="http://pypi.python.org/packages/source/R/Radicale/Radicale-$pkgver.tar.gz
	$pkgname-systemwide.patch
	$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 || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --skip-build --prefix=/usr \
		--root="$pkgdir" || return 1

	install -d "$pkgdir"/etc/radicale
	install -m640 config "$pkgdir"/etc/radicale/ || return 1
	install -m640 logging "$pkgdir"/etc/radicale/ || return 1

	install -d -o radicale "$pkgdir"/var/lib/radicale \
		"$pkgdir"/var/log/radicale || return 1
	install -Dm755 "$srcdir"/radicale.initd \
		"$pkgdir"/etc/init.d/radicale || return 1

}

md5sums="e29e51df14bc8ca5a580998d5d592285  Radicale-1.0.1.tar.gz
1175007391c9a27c06f5830543710402  radicale-systemwide.patch
8f017c52eef88c16a8cde11265f482fc  radicale.initd"
sha256sums="e18a68d0793403e7591c725f7d2b83490dcc5f3cdd008bd75fe952311eee1b60  Radicale-1.0.1.tar.gz
68fd1b42ebd3c347012be28268cac26b63d6a9391fbd6df6f52fb5955b55ed79  radicale-systemwide.patch
05026eb64495b272f08692ea51d44722a5f109e35506d5aaaf3293c511d734a8  radicale.initd"
sha512sums="d7c0486c0e860e88a5d8c387a7b18c14dab242e9a6b1fc49f35443f74fd1709e7927d307f056ba4caa319550d89bd6f97908a4b6fe56d197b637aa86e82382bf  Radicale-1.0.1.tar.gz
4b8327147ae7b620a76eb3070d10b79aa823b5ab2aa53f6ef73adde83a4b2c78afc929d265f54fe747acbc0e524cdbfbb84b72c576f8ab029a3a410236ebd966  radicale-systemwide.patch
dd0e7641687592f5b6b053c6f7170bd81747467db690827906826684b8cafd3de9a065d5389d6f3beb5e02fa6ba6daf2bcd77022ec1505dc88abc2e8f6b17a57  radicale.initd"