diff --git a/srcpkgs/khal/template b/srcpkgs/khal/template new file mode 100644 index 00000000000..6f4ab34cd97 --- /dev/null +++ b/srcpkgs/khal/template @@ -0,0 +1,27 @@ +# Template file for 'khal' +pkgname=khal +version=0.6.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 " +license="MIT" +homepage="http://lostpackets.de/khal/" +distfiles="${PYPI_SITE}/k/khal/khal-${version}.tar.gz" +checksum=1a2e8d56d20b12ed2c3ef2468ff0ce0c658a8a566b249821b0f4b30cce8ada9a + +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 +}