2 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Georg Vogetseder <georg.vogetseder@gmail.com>
4 # Contributor: Pablo Recio <rikutheronin@gmail.com>
6 pkgname=hamster-standalone
9 pkgdesc="GNOME time tracking standalone application without the applet"
11 url="http://projecthamster.wordpress.com/"
13 depends=('python2-libgnome' 'python2-gconf' 'python2-gnomecanvas' 'dbus-python>=0.83.1' 'python-wnck>=2.32' 'python-pysqlite>=2.6.0' 'pyxdg')
14 makedepends=('intltool' 'gnome-doc-utils>=0.20.1' 'gnome-control-center')
15 options=('!libtool' '!emptydirs')
16 groups=('gnome-extra')
17 install=hamster-standalone.install
18 source=(ftp://ftp.gnome.org/pub/GNOME/sources/hamster-applet/2.32/hamster-applet-${pkgver}.tar.bz2)
19 sha256sums=('98302221efd4ccd4a2446d2cda15b795a0b23850f562935a3dd61afe3e2cd0aa')
22 cd "${srcdir}/hamster-applet-${pkgver}"
23 sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" waf
25 ./waf --prefix=/usr configure build
26 ./waf install --destdir=${pkgdir} --libdir=/usr/lib \
27 --libexecdir=/usr/lib/hamster-applet \
31 sed -i "s|#!/usr/bin/python$|#!/usr/bin/python2|" $pkgdir/usr/bin/hamster-service
33 sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
34 $pkgdir/usr/share/docky/helpers/hamster_control.py \
35 $pkgdir/usr/share/dockmanager/scripts/hamster_control.py \
36 $pkgdir/usr/bin/{hamster-cli,{gnome,hamster}-time-tracker}
38 install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
39 gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/hamster-applet.schemas" --domain hamster-applet ${pkgdir}/etc/gconf/schemas/*.schemas
40 rm -f ${pkgdir}/etc/gconf/schemas/*.schemas