1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
6 pkgdesc="Time Based Text records performance time of written text and vehicles it as additional information."
8 url="http://tbt.dyne.org/"
11 optdepends=('pygtk: Gtk GUI'
12 'perl-term-readkey: perl implementation'
13 'php: php implementation')
14 source=("http://ftp.dyne.org/$pkgname/releases/$pkgname-$pkgver.tar.gz")
15 md5sums=('e52e909a08b4c33a331b1ef69c861472')
18 cd "$srcdir/$pkgname-$pkgver"
21 sed -i '/ln/s/\$(PREFIX)\(.*tbt\)/\/usr\1/' Makefile
27 cd "$srcdir/$pkgname-$pkgver"
30 install -d "$pkgdir/usr/"{bin,share/man/man1}
32 make PREFIX="$pkgdir/usr" install
35 install -Dm755 pygui/gtbt.py \
36 "$pkgdir/usr/bin/gtbt"
38 install -Dm644 pygui/gtbt.glade \
39 "$pkgdir/usr/share/gtbt/gtbt.glade"
41 # fix glade path and add python2 shebang
42 sed -e 's|gtbt|/usr/share/gtbt/&|' \
43 -e 'x;1i#!/usr/bin/env python2' \
44 -i "$pkgdir/usr/bin/gtbt"
46 # php js and perl implementations, poetry, examples
47 install -d "$pkgdir/usr/share/$pkgname"
48 cp -a js poetry tbt-tools web \
49 "$pkgdir/usr/share/$pkgname"
52 # vim:set ts=2 sw=2 et: