summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92a304e0c1e54f05864f9c4f67d9bd0de7afcc6d (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

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
}