1 # Maintainer: Johannes Schlatow <johannes.schlatow@googlemail.com>
6 pkgdesc="A command-line todo list manager"
8 url="http://taskwarrior.org/projects/show/taskwarrior/"
11 makedepends=('git' 'cmake')
12 optdepends=('bash-completion'
14 'rsync: synchronisation via rsync'
15 'curl: synchronisation via http(s)/ftp'
16 'openssh: synchronisation via ssh')
17 provides=('task=2.0.0')
19 install="task.install"
21 _gitroot="git://tasktools.org/task.git"
27 msg "Connecting to GIT server...."
29 if [ -d $srcdir/$_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
37 git checkout $_gitbranch
39 msg "GIT checkout done or server timeout"
40 msg "Starting cmake..."
42 cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ./
44 msg "Starting make..."
45 make CXXFLAGS="$CXXFLAGS" || return 1
49 cd "$srcdir/$_gitname"
50 make DESTDIR="$pkgdir" install/strip
51 mkdir -p $pkgdir/usr/share/zsh/site-functions
52 cp scripts/zsh/_task $pkgdir/usr/share/zsh/site-functions/