updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / gnotime / PKGBUILD
blob4ecba34922c11d1fbdea4dbc3b8116d8e8d717ce
1 # Contributor: Roman Kyrylych <roman@archlinux.org>
2 # Contributor: Christian Theune <ct@gocept.com>
3 # Maintainer: M Rawash <mrawash@gmail.com>
5 pkgname=gnotime
6 pkgver=2.3.0
7 pkgrel=1
8 pkgdesc="A utility to track time spent on activities"
9 arch=('i686' 'x86_64')
10 license=('GPL')
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')
21 build() {
22   cd ${startdir}/src/${pkgname}-${pkgver}
23   
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
30               
31   make || return 1
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