updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / todotxt-git / PKGBUILD
blob7892d767045ab0cca31f62a6a5b758a04212f535
1 # Maintainer: Matthew Bauer <mjbauer95@gmail.com>
2 # Contributor: David Rosenstrauch <darose@darose.net>
4 _pkgname=todotxt
5 __pkgname=todo.txt_cli
6 pkgname=$_pkgname-git
7 pkgver=20100512
8 pkgrel=1
9 pkgdesc="lifehacker.com's todo.sh script for maintaining a todo.txt file"
10 url="http://ginatrapani.github.com/todo.txt-cli/"
11 depends=('bash')
12 makedepends=('git')
13 install=$_pkgname.install
14 arch=('i686' 'x86_64')
15 license="GPL"
16 conflicts=("$_pkgname")
17 replaces=("$_pkgname")
18 provides=("$_pkgname")
20 _gitroot="git://github.com/ginatrapani/todo.txt-cli.git"
21 _gitname="$__pkgname"
23 build() {
24   cd "$srcdir"
25   msg "Connecting to GIT server...."
27   if [ -d $_gitname ] ; then
28     cd $_gitname && git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot $_gitname
32   fi
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