updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / hamster-standalone / PKGBUILD
bloba350eec9821f92a1068d5493f850743afcba50a4
1 # $Id$
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
7 pkgver=2.32.1
8 pkgrel=2
9 pkgdesc="GNOME time tracking standalone application without the applet"
10 arch=('any')
11 url="http://projecthamster.wordpress.com/"
12 license=('GPL')
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')
21 build() {
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 \
28       --sysconfdir=/etc \
29       --localstatedir=/var
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