updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / timeclock-git / PKGBUILD
blob8a958ef2e993f8379a0b381ed83b4661984959bb
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 pkgname=timeclock-git
3 pkgver=20091020
4 pkgrel=1
5 pkgdesc="a simple utility for people who suffer from excessive procrastination or distractibility"
6 arch=('any')
7 url="http://ssokolow.github.com/timeclock/"
8 license=('GPL')
9 depends=('python' 'pygtk' 'python-notify')
10 #options=('!libtool')
11 source=()
12 md5sums=()
14 _gitroot=git://github.com/Svenstaro/timeclock
15 _gitname=timeclock
17 build() {
18         cd ${srcdir}
19         msg "Connecting to github.com GIT server..."
21         if [ -d ${srcdir}/$_gitname ]; then
22                 cd $_gitname && git pull origin || return 1
23                 msg "The local files are updated."
24         else
25                 git clone $_gitroot || return 1
26         fi
28         msg "GIT checkout done or server timeout"
29         msg "Starting make..."
31         if [ -d ${srcdir}/$_gitname-build ]; then
32                 rm -rf ${srcdir}/$_gitname-build
33         fi
35         git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build || return 1
36         cd ${srcdir}/$_gitname-build/ || return 1
38   sed -i s'/cd $(DESTDIR)\/usr\/share/cd \/usr\/share/' Makefile
39         make DESTDIR="$pkgdir" install || return 1
42 # vim:set ts=2 sw=2 et: