51 lines
1.6 KiB
Bash
51 lines
1.6 KiB
Bash
# Template file for 'radicale'
|
|
pkgname=radicale
|
|
version=3.2.2
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-vobject python3-dateutil python3-passlib python3-bcrypt
|
|
python3-defusedxml apache-htpasswd"
|
|
checkdepends="${depends} python3-pytest python3-pytest-flake8 python3-isort
|
|
python3-pytest-cov python3-waitress"
|
|
short_desc="Complete calendar and contact storing and manipulating solution"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://radicale.org"
|
|
changelog="https://raw.githubusercontent.com/Kozea/Radicale/master/CHANGELOG.md"
|
|
distfiles="https://github.com/Kozea/Radicale/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=d738a27c7d16720602a58355ec371ef832d7f4e6bf274daff7ed55b1bb4e0944
|
|
conf_files="
|
|
/etc/radicale/config
|
|
/etc/radicale/rights"
|
|
make_dirs="
|
|
/etc/radicale 755 root root
|
|
/usr/share/radicale/ 755 root root
|
|
/var/log/radicale/ 750 radicale radicale
|
|
/var/lib/radicale 750 radicale radicale"
|
|
system_accounts="radicale"
|
|
radicale_homedir="/var/lib/radicale"
|
|
radicale_descr="Radicale user"
|
|
replaces="radicale2<3.0.6"
|
|
|
|
do_check() {
|
|
# install the package to test_install directory for testing
|
|
python3 setup.py install --root="${PWD}/test_install"
|
|
PYTHONPATH="${PWD}/test_install/${py3_sitelib}" pytest -c /dev/null
|
|
}
|
|
|
|
post_install() {
|
|
vinstall config 644 etc/radicale/
|
|
vinstall rights 640 etc/radicale/
|
|
vinstall config 644 usr/share/examples/radicale
|
|
vinstall radicale.wsgi 644 usr/share/radicale
|
|
vsv radicale
|
|
vdoc README.md
|
|
}
|
|
|
|
radicale2_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" (transitional dummy package)"
|
|
build_style=meta
|
|
}
|