updated on Sun Jan 22 20:01:29 UTC 2012
[aur-mirror.git] / tomate / PKGBUILD
blob8433b0b8be5a6b434162aa774107a45a978d566f
1 # Maintainer: Andrew Black <agwblack at gmail dot com>
2 pkgname=tomate
3 pkgver=20110610
4 pkgrel=1
5 pkgdesc="An applet for preventing procastination based on the Pomodoro Technique"
6 arch=(i686 x86_64)
7 url="https://gitorious.org/tomate/pages/Home"
8 license=('GPL')
9 depends=(python2 pygtk)
10 makedepends=(git)
13 _gitroot="https://git.gitorious.org/tomate/tomate.git"
14 _gitname="tomate"
16 build() {
17         cd "$srcdir"
18         if test -d "$pkgname"; then
19                 cd "$pkgname"
20                 git pull || return 1;   
21         else
22                 git clone "$_gitroot"
23                 cd "$pkgname"
24         fi
26         mkdir -p "$pkgdir/usr/share/tomate"
27         mkdir -p "$pkgdir/usr/bin"
28         install -Dm0755 *.{png,svg,py} "$pkgdir/usr/share/tomate/" 
29         ln -s "/usr/share/tomate/tomate.py" "$pkgdir/usr/bin/tomate"