1 # Maintainer: Anntoin Wilkinson <anntoin@gmail.com>
2 pkgname=punch-time-tracking
5 pkgdesc="Command Line time tracking that integrates with todo.txt from Lifehacker"
7 url="http://code.google.com/p/punch-time-tracking/"
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')
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: