summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 112e3543820e6ba8ebe72bdbf05742712ef1bafa (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
34
35
36
37
# Maintainer: Georg Nagel <g.schlmm at gmail dot com>
# Contributor: Danilo Bargen <aur at dbrgn dot ch>
_pkgname=ti
pkgname=ti-git
pkgver=r153.bfb0a95
pkgrel=3
pkgdesc="A silly simple time tracker"
arch=('any')
url="https://pypi.org/project/ti/"
license=('MIT')
groups=()
depends=('python' 'python-yaml' 'python-colorama')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("${pkgname}::git+https://github.com/tbekolay/ti")
noextract=()
md5sums=('SKIP')

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

prepare() {
    cd "$srcdir/${pkgname%}"
    python setup.py build
}

package() {
    cd "$srcdir/${pkgname%}"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}