blob: 038531e3bcb6cc15e6f7d7333088e50a6ef3ece2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Étienne Deparis <etienne [at] depar [dot] is>
# Contributor: eolianoe <eolianoe [at] googlemail [dot] com>
pkgname=khal-git
_gitname=khal
pkgver=0.5.0.r145.g20a9640
pkgrel=2
pkgdesc="Command line CalDav client"
license=("MIT")
url="http://lostpackets.de/khal/"
depends=('python-urwid' 'python-xdg' 'vdirsyncer' 'python-dateutil'
'python-configobj' 'python-tzlocal' 'python-icalendar' 'sqlite')
makedepends=('python-setuptools' 'git' 'python-sphinxcontrib-newsfeed')
# I keep here python depencies...
# 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'
# 'python2-icalendar' '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}/"
python setup.py install --root=$pkgdir
install -D -m644 khal.conf.sample "${pkgdir}/usr/share/doc/${_gitname}/examples/khal.conf"
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
install -D -m644 AUTHORS.txt "${pkgdir}/usr/share/licenses/${_gitname}/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"
}
|