summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 472626ff1f174813f1e8b63d04526948a4d3129c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pkgname=hamster-time-tracker-git
pkgver=3.0.3.81be67e
pkgrel=1
pkgdesc="Time tracking application that helps you to keep track on how much time you have spent during the day on activities you choose to track (git version)"
arch=('any')
url="https://github.com/projecthamster/hamster"
license=('GPL')
#depends=('python2-dbus' 'python2-gconf' 'python2-notify' 'python2-wnck' 'python2-xdg' 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils')
depends=('gtk3' 'python-dbus' 'python-cairo' 'python-gobject' 'python-pyxdg')
makedepends=('intltool')
provides=('hamster-time-tracker')
conflicts=('hamster-time-tracker' 'hamster-applet')
replaces=('hamster-applet')
install=$pkgname.install
source=('git+https://github.com/projecthamster/hamster.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/hamster"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/hamster"
  python ./waf configure --prefix=/usr --libexecdir=/usr/lib --skip-icon-cache-update
  python ./waf build
}

package() {
  cd "$srcdir/hamster"
  python ./waf install --destdir="$pkgdir"
  rm "$pkgdir/usr/share/glib-2.0/schemas/gschemas.compiled"
}