# Template file for 'khal'
pkgname=khal
version=0.10.4
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-click python3-click-log python3-configobj
 python3-dateutil python3-icalendar python3-pytz python3-tzlocal
 python3-urwid python3-xdg python3-atomicwrites"
checkdepends="python3-pytest python3-freezegun vdirsyncer $depends"
short_desc="Command-line calendar build around CalDAV"
maintainer="Anachron <gith@cron.world>"
license="MIT"
homepage="http://lostpackets.de/khal/"
distfiles="${PYPI_SITE}/k/khal/khal-${version}.tar.gz"
checksum=3fdb980a9a61c0206d7a82b16f77b408a4f341a2b866b9c9fcf6a641850d129f
make_check=ci-skip

pre_build() {
	vsed -i setup.py \
		-e '/setup_requires=/d' \
		-e "s|use_scm_version=.*|version='${version}',|"
}
post_install() {
	vlicense COPYING
	vinstall misc/__khal 644 usr/share/zsh/site-functions
	vsconf khal.conf.sample
}
