summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1907545054ef820f63fd705f67a55fe7b75fa956 (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
# Maintainer: Egor Kovetskiy <e.kovetskiy@gmail.com>
pkgname=python-todo-t
pkgver=85.6422833
pkgrel=1
pkgdesc="Command-line todo list manager"
url="https://github.com/kovetskiy/t"
arch=('i686' 'x86_64')
license=('GPL')
makedepends=('python')

source=("git://github.com/kovetskiy/t.git")
md5sums=('SKIP')
backup=()

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

package() {
  cd "t"
  printf '0.r%s.%s' \
      "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

# vim:set ts=2 sw=2 et: