Skip to content

Instantly share code, notes, and snippets.

@jasonwryan

jasonwryan/PKGBUILD

Created Apr 17, 2014
Embed
What would you like to do?
PKGBUILD for vdir branch of khal-git
# vdir branch
pkgname=khal-vdir-git
_gitname=khal
pkgver=f7146d2
pkgrel=1
pkgdesc="Command line CalDav client: vdirsyncher branch"
arch=('any')
license=("MIT")
url="http://lostpackets.de/khal/"
depends=('sqlite' 'python2-dateutil' 'python2-lxml' 'python2-requests' 'python2-icalendar' 'python2-urwid' 'python2-xdg' 'vdirsyncer-git' 'python2-argvard')
makedepends=('python2-setuptools' 'git')
options=(!emptydirs)
source=("git://github.com/geier/${_gitname}.git#branch=vdir")
install='${_gitname}.install'
conflicts=('khal-git')
md5sums=('SKIP')
pkgver() {
cd "${_gitname}"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
package() {
cd "${srcdir}/${_gitname}/"
python2 setup.py install --root=$pkgdir
install -Dm 644 khal.conf.sample "${pkgdir}/etc/skel/khal.conf"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment