aboutsummaryrefslogtreecommitdiffstats
path: root/testing/radicale/APKBUILD
blob: 7cbd8a25b2180ad658c5590051e18e05e530fe93 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=radicale
pkgver=0.10
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"
pkgusers="radicale"
pkggroups="radicale"
install="$pkgname.pre-install"
subpackages=""
source="http://pypi.python.org/packages/source/R/Radicale/Radicale-$pkgver.tar.gz
	radicale-0.10-systemwide.patch
	radicale.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 -D -m755 "$srcdir"/radicale.initd \
		"$pkgdir"/etc/init.d/radicale || return 1

}

md5sums="32655d8893962956ead0ad690cca6044  Radicale-0.10.tar.gz
1175007391c9a27c06f5830543710402  radicale-0.10-systemwide.patch
8f017c52eef88c16a8cde11265f482fc  radicale.initd"
sha256sums="0c6522f5751685fc159524ed7acee811ccb9a582db2adb6bbb4da99ce0103d64  Radicale-0.10.tar.gz
68fd1b42ebd3c347012be28268cac26b63d6a9391fbd6df6f52fb5955b55ed79  radicale-0.10-systemwide.patch
05026eb64495b272f08692ea51d44722a5f109e35506d5aaaf3293c511d734a8  radicale.initd"
sha512sums="d223df0277e43081c9d5a95f30fb5ad5f852b24fc9493b089e36d82ee45ce1549b68e28bf8bdd12352bc3f087babc8f3b6d4e3fce87980e6ca5e3e75f4ace820  Radicale-0.10.tar.gz
4b8327147ae7b620a76eb3070d10b79aa823b5ab2aa53f6ef73adde83a4b2c78afc929d265f54fe747acbc0e524cdbfbb84b72c576f8ab029a3a410236ebd966  radicale-0.10-systemwide.patch
dd0e7641687592f5b6b053c6f7170bd81747467db690827906826684b8cafd3de9a065d5389d6f3beb5e02fa6ba6daf2bcd77022ec1505dc88abc2e8f6b17a57  radicale.initd"