1 # Contributor: Roman Kyrylych <roman@archlinux.org>
2 # Contributor: Christian Theune <ct@gocept.com>
3 # Maintainer: M Rawash <mrawash@gmail.com>
8 pkgdesc="A utility to track time spent on activities"
11 url="http://gttr.sourceforge.net/"
12 depends=('gtkhtml' 'guile' 'qof>=0.7.2' 'gconf' 'desktop-file-utils')
13 makedepends=('perlxml' 'gnome-doc-utils')
14 options=('!libtool' '!emptydirs')
15 install=gnotime.install
16 source=(http://downloads.sourceforge.net/gttr/${pkgname}-${pkgver}.tar.gz
17 description-column.patch)
18 md5sums=('dd92b8c8a1f45e33000a3e14f227bcf8'
19 '1af7f0d9d9f085dcd440a66609e67e99')
22 cd ${startdir}/src/${pkgname}-${pkgver}
24 #patch fixes description column text
25 patch -Np0 -i ${srcdir}/description-column.patch || return 1
27 sed -i -e 's/\/usr\/bin\/tr/\/bin\/tr/g' configure
28 ./configure --prefix=/usr --sysconfdir=/etc \
29 --localstatedir=/var --disable-static --disable-scrollkeeper
32 make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=${startdir}/pkg install
34 mkdir -p ${startdir}/pkg/usr/share/gconf/schemas
35 gconf-merge-schema ${startdir}/pkg/usr/share/gconf/schemas/${pkgname}.schemas \
36 ${startdir}/pkg/etc/gconf/schemas/*.schemas
37 rm -f ${startdir}/pkg/etc/gconf/schemas/*.schemas
39 chmod +x ${startdir}/pkg/usr/bin/gnotime-remote