summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d90e6d911a486b693f0251fc79e69bba25cbe52 (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
# Maintainer: naspeh <naspeh@gmail.com>

pkgname=tider-git
pkgver=0.0.0
pkgrel=12
pkgdesc='Lightweight time tracker (GTK+)'
arch=('any')
url='http://pusto.org/en/tider/'
license=('BSD')
depends=('python-gobject' 'gtk3' 'libnotify')
makedepends=('git')
provides=('tider')
source=("$pkgname"::'git+https://github.com/naspeh/tider.git')
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$pkgname"
    python setup.py build || return 1
    python setup.py install --root=$pkgdir --optimize=1 || return 1
}