void-packages/srcpkgs/khal/template

28 lines
860 B
Bash

# Template file for 'khal'
pkgname=khal
version=0.7.0
revision=1
build_style=python-module
python_versions="2.7"
pycompile_module="khal"
hostmakedepends="python-setuptools"
depends="python-click python-configobj python-dateutil python-icalendar python-pytz python-setproctitle python-sqlite python-tzlocal python-urwid python-xdg vdirsyncer"
short_desc="Command-line calendar build around CalDAV"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
license="MIT"
homepage="http://lostpackets.de/khal/"
distfiles="${PYPI_SITE}/k/khal/khal-${version}.tar.gz"
checksum=c6b0c81df56133e4592f02d8e9b60702079da2affd1b09ba96358ccd8eec9402
pre_build() {
sed -e '/setuptools_scm/d' \
-e '/pkginfo/d' \
-e "s/use_scm_version=True,/version=\"${version}\",/" \
-i setup.py
}
post_install() {
vlicense COPYING
vinstall misc/__khal 644 usr/share/zsh/site-functions
}