diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-16 10:35:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-16 10:35:49 +0000 |
commit | 4c35fcd940ba935930508237bd939e0e8ed4bf85 (patch) | |
tree | 1f23f99f7d8abecc1ace1f897f98a42e63890d90 /testing/radicale | |
parent | daf649ee6cca9358a212a1748ba75929f4c07518 (diff) | |
download | aports-4c35fcd940ba935930508237bd939e0e8ed4bf85.tar.bz2 aports-4c35fcd940ba935930508237bd939e0e8ed4bf85.tar.xz |
testing/radicale: modernize and upgrade to 2.1.8
switch to python3 as a part of the modernization.
Diffstat (limited to 'testing/radicale')
-rw-r--r-- | testing/radicale/APKBUILD | 42 |
1 files changed, 17 insertions, 25 deletions
diff --git a/testing/radicale/APKBUILD b/testing/radicale/APKBUILD index 5fbdf7a015..e9c5d7e2d2 100644 --- a/testing/radicale/APKBUILD +++ b/testing/radicale/APKBUILD @@ -1,61 +1,53 @@ # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=radicale -pkgver=1.1.1 -pkgrel=2 +pkgver=2.1.8 +pkgrel=0 pkgdesc="A simple CalDAV (calendar) and CardDAV (contact) server" url="http://radicale.org" arch="noarch" license="GPLv3+" -depends="python2" +depends="python3" depends_dev="" -makedepends="$depends_dev python2 py-setuptools" +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-systemwide.patch $pkgname.initd" -_builddir="$srcdir"/Radicale-$pkgver +builddir="$srcdir"/Radicale-$pkgver prepare() { local i - cd "$_builddir" + cd "$builddir" for i in $source; do case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + *.patch) msg $i; patch -p1 -i "$srcdir"/$i;; esac done } build() { - cd "$_builddir" - python2 setup.py build || return 1 + cd "$builddir" + python3 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --skip-build --prefix=/usr \ - --root="$pkgdir" || return 1 + 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/ || return 1 - install -m640 -g radicale logging "$pkgdir"/etc/radicale/ || return 1 + 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 || return 1 + "$pkgdir"/var/log/radicale install -Dm755 "$srcdir"/radicale.initd \ - "$pkgdir"/etc/init.d/radicale || return 1 + "$pkgdir"/etc/init.d/radicale } -md5sums="a29dd538377ea24cec83237a636122ae Radicale-1.1.1.tar.gz -1175007391c9a27c06f5830543710402 radicale-systemwide.patch -8f017c52eef88c16a8cde11265f482fc radicale.initd" -sha256sums="e2c9812913c464ab88ae1f66b29e81f87a4cc6ee1c94d167b33508c530dab4b0 Radicale-1.1.1.tar.gz -68fd1b42ebd3c347012be28268cac26b63d6a9391fbd6df6f52fb5955b55ed79 radicale-systemwide.patch -05026eb64495b272f08692ea51d44722a5f109e35506d5aaaf3293c511d734a8 radicale.initd" -sha512sums="dc251d8fa4d347c2bbcf472b7a2da94d674f858a007fec1d74774cd1f3ae43eb2d5902ed45762638ec49546b8ee1f66446d07b50fc0ff6595deb67ea07f87af2 Radicale-1.1.1.tar.gz -4b8327147ae7b620a76eb3070d10b79aa823b5ab2aa53f6ef73adde83a4b2c78afc929d265f54fe747acbc0e524cdbfbb84b72c576f8ab029a3a410236ebd966 radicale-systemwide.patch +sha512sums="038bee4114b090bcf873e8a4ec83cbbc7bdd34b4843fd1a769a023c891b589b3a18637d5f8f8595691a7930804ad7695e333bb9df96d00515b7a3695294eb5f7 Radicale-2.1.8.tar.gz dd0e7641687592f5b6b053c6f7170bd81747467db690827906826684b8cafd3de9a065d5389d6f3beb5e02fa6ba6daf2bcd77022ec1505dc88abc2e8f6b17a57 radicale.initd" |