diff options
Diffstat (limited to 'testing/radicale/APKBUILD')
-rw-r--r-- | testing/radicale/APKBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/radicale/APKBUILD b/testing/radicale/APKBUILD new file mode 100644 index 0000000000..b34474fa42 --- /dev/null +++ b/testing/radicale/APKBUILD @@ -0,0 +1,60 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=radicale +pkgver=0.9 +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.9-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="38295981c8e595fe774c6a5e6908c844 Radicale-0.9.tar.gz +79f3ceab466ae0529e418182a8a90acb radicale-0.9-systemwide.patch +c29bfd3a2927ddf777e8e289e0f8da26 radicale.initd" +sha256sums="77bf813fd26f0d359c1a7b7bcce9b842b4503c5516989a4a0a4f648e299e41f7 Radicale-0.9.tar.gz +389c0fa882e18c8e95e445be964464c8f9ba62cf5c6659d637473d95bad2fb5c radicale-0.9-systemwide.patch +fec7084565e99d17bea72fc809f03250ef0bcdc40eacb25ace77faf0c2fbd489 radicale.initd" +sha512sums="d030332a281c938859177ec6e7bf111622e47d1efc6c5d72e520051e8923a97e8e0b457488a88636ef86816bba1a72a867e8ef7a8c96e7414a87bb10c958aca2 Radicale-0.9.tar.gz +8cf1d4a377d75df479d8d8d601c2b11e429a798b14e4544a7e183a8c1dc0fe1ec948771710d6c31f8262dfa02d070204762f0594e5e054e20e8a2e76b5a8d29f radicale-0.9-systemwide.patch +7d786530b917585044ce3f301b8b307676f8ef965fe512a308812d0c7ef1abeea144c4f84f52b45d3657a4c44e9d36b0e3c0601e08c4cec27ae9ce9a812bec0e radicale.initd" |