# Template file for 'vdirsyncer'
pkgname=vdirsyncer
version=0.13.1
revision=2
noarch=yes
build_style=python-module
python_versions="3.4"
pycompile_version="3.4"
pycompile_module="vdirsyncer"
hostmakedepends="python3.4-setuptools"
depends="python3.4-atomicwrites python3.4-click python3.4-click-log
 python3.4-click-threading python3.4-setuptools python3.4-requests-toolbelt"
short_desc="Synchronize calendars and addressbooks"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
license="MIT"
homepage="https://vdirsyncer.pimutils.org/"
distfiles="${PYPI_SITE}/v/vdirsyncer/vdirsyncer-${version}.tar.gz"
checksum=cbaa5f303a3e585e551e6e2a0e63aa35813f193f3da8208bcda1b7c3d88d93b0

pre_build() {
	sed -i setup.py \
		-e '/setup_requires=/d' \
		-e '/use_scm_version/,+2d' \
		-e "/author=/ a\
		version='${version}',"
}
post_install() {
	vsconf config.example
	vlicense LICENSE
}
