1 # Maintainer: Matthew Bauer <mjbauer95@gmail.com>
2 # Contributor: David Rosenstrauch <darose@darose.net>
9 pkgdesc="lifehacker.com's todo.sh script for maintaining a todo.txt file"
10 url="http://ginatrapani.github.com/todo.txt-cli/"
13 install=$_pkgname.install
14 arch=('i686' 'x86_64')
16 conflicts=("$_pkgname")
17 replaces=("$_pkgname")
18 provides=("$_pkgname")
20 _gitroot="git://github.com/ginatrapani/todo.txt-cli.git"
25 msg "Connecting to GIT server...."
27 if [ -d $_gitname ] ; then
28 cd $_gitname && git pull origin
29 msg "The local files are updated."
31 git clone $_gitroot $_gitname
34 msg "GIT checkout done or server timeout"
35 msg "Starting make..."
37 rm -rf "$srcdir/$_gitname-build"
38 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39 cd "$srcdir/$_gitname-build"
41 install -D -m644 todo.cfg $pkgdir/usr/share/$_pkgname/todo.cfg
42 install -D -m755 todo.sh $pkgdir/usr/bin/todo.sh