diff options
author | Étienne Deparis | 2015-01-05 00:14:11 +0100 |
---|---|---|
committer | Étienne Deparis | 2015-01-05 00:14:11 +0100 |
commit | 9d5b732459aef7ef6dcf3a48317340ed8c675fe2 (patch) | |
tree | 796c340eb98be8052a73347ceb13229f3088ad92 | |
download | aur-9d5b732459aef7ef6dcf3a48317340ed8c675fe2.tar.gz |
First try of dev-aur
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | PKGBUILD | 60 | ||||
-rw-r--r-- | khal.install | 11 |
3 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e9ff8f9cf77d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +# Generated by makepkg 4.2.0 +# Sun Jan 4 23:08:04 UTC 2015 +pkgbase = khal-git + pkgdesc = Command line CalDav client + pkgver = 0.4.0.r88.gf53b9c3 + pkgrel = 2 + url = http://lostpackets.de/khal/ + install = khal.install + arch = any + license = MIT + makedepends = python2-setuptools + makedepends = git + makedepends = python2-sphinxcontrib-newsfeed + depends = python2-urwid + depends = python2-xdg + depends = python2-vdirsyncer + depends = python2-dateutil + depends = python2-configobj + depends = python2-tzlocal + depends = sqlite + provides = khal + conflicts = khal + options = !emptydirs + source = khal::git+https://github.com/geier/khal.git + md5sums = SKIP + +pkgname = khal-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d5811a167588 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Étienne Deparis <etienne [at] depar [dot] is> +# Contributor: eolianoe <eolianoe [at] googlemail [dot] com> + +pkgname=khal-git +_gitname=khal +pkgver=0.4.0.r88.gf53b9c3 +pkgrel=2 +pkgdesc="Command line CalDav client" +license=("MIT") +url="http://lostpackets.de/khal/" +# python2-click, python2-icalendar come with the python2-vdirsyncer dependancy +# python2-pytz comes with the python2-icalendar dependancy +depends=('python2-urwid' 'python2-xdg' 'python2-vdirsyncer' + 'python2-dateutil' 'python2-configobj' 'python2-tzlocal' + 'sqlite') +# Doesn't seems to be useful anymore... +# python2-requests' 'python2-certifi') +makedepends=('python2-setuptools' 'git' 'python2-sphinxcontrib-newsfeed') +source=("${_gitname}::git+https://github.com/geier/khal.git") +md5sums=('SKIP') +install='khal.install' +provides=('khal') +conflicts=('khal') +arch=('any') +options=(!emptydirs) + +pkgver() { + cd "$srcdir/${_gitname}" + MAJOR=`sed -n "s/MAJOR\s\?=\s\?\(\d*\)/\1/p" version.py` + MINOR=`sed -n "s/MINOR\s\?=\s\?\(\d*\)/\1/p" version.py` + PATCH=`sed -n "s/PATCH\s\?=\s\?\(\d*\)/\1/p" version.py` + GITVER=`git describe --always --dirty --tags | cut -d- -f2- | sed -r 's/([^-]*-g)/r\1/;s/-/./g'` + + echo "${MAJOR}.${MINOR}.${PATCH}.${GITVER}" +} + +build(){ + cd "$srcdir/${_gitname}/doc" + # Fix to use python2 + sed -i 's/sphinx-build/sphinx-build2/g' Makefile + sed -i 's/python/python2/' source/generate_config.py + sed -i 's/python/python2/' source/Makefile + + make man +} + +package() { + cd "$srcdir/${_gitname}/" + python2 setup.py install --root=$pkgdir + + install -D -m644 khal.conf.sample "${pkgdir}/etc/skel/khal.conf" + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/khal/LICENSE" + install -D -m644 AUTHORS.txt "${pkgdir}/usr/share/licenses/khal/AUTHORS" + + install -D -m644 doc/build/man/khal.1 "${pkgdir}/usr/share/man/man1/khal.1" + + # You can comment the following to disable zsh completion (if you do + # not plan to use zsh for example) + install -D -m644 misc/__khal "${pkgdir}/usr/share/zsh/site-functions/_khal" +} diff --git a/khal.install b/khal.install new file mode 100644 index 000000000000..0e6db42df72f --- /dev/null +++ b/khal.install @@ -0,0 +1,11 @@ +post_install() { + echo 'Do not forget to configure your vdirsyncer installation.' + echo 'A sample and self explanatory configuration file has been put in /etc/skel/khal.conf.' + echo 'Copy it in ~/.config/khal/khal.conf and edit it as needed.' +} + +post_upgrade() { + echo 'The configuration file has changed.' + echo 'Please compare your own version in ~/.config/khal/khal.conf with the new one put in /etc/skel/khal.conf.' + echo 'You may also need to delete your sqlite file (in ~/.config/khal/khal.db) to take into account any changes, which might have occured in the database schema.' +}
\ No newline at end of file |