updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / punch-time-tracking / PKGBUILD
blob849d7136b0a406805bdedcb8d0f6ee0cb025ca36
1 # Maintainer: Anntoin Wilkinson <anntoin@gmail.com>
2 pkgname=punch-time-tracking
3 pkgver=1.3
4 pkgrel=3
5 pkgdesc="Command Line time tracking that integrates with todo.txt from Lifehacker"
6 arch=(any)
7 url="http://code.google.com/p/punch-time-tracking/"
8 license=('GPL3')
9 depends=('python2')
10 makedepends=('unzip' 'patch')
11 optdepends=('todotxt: integration with tasks - fairly useless without this')
12 install=$pkgname.install
13 source=(http://punch-time-tracking.googlecode.com/files/$pkgname-$pkgver.zip)
14 noextract=($pkgname-$pkgver.zip)
15 md5sums=('7fc124dc4f0faddff364bacc61259647')
16 sha1sums=('417706dfb61ce069c5dbd3c48b3ee2629f3bf0a7') 
18 build()
20         cd $srcdir
21         unzip $pkgname-$pkgver.zip
22         # Convert the newlines from dos to unix format
23         tr -d '\r' < Punch.py >  Punch.tmp && mv Punch.tmp Punch.py
24         # Add #!/usr/bin/env python to the Start of the file
25         sed -i '1i #!/usr/bin/env python2' Punch.py
26         install -D -m755 Punch.py $startdir/pkg/usr/bin/punch
29 # vim:set ts=2 sw=2 et: