summaryrefslogtreecommitdiff
path: root/gitstats-git/PKGBUILD
blob: 2d1bf6f3e071c338a8aad1e22ee9d312fc0b3c0b (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: Erich Eckner <arch at eckner dot net>
# Contributor: Timo Schmiade <the_isz@gmx.de>
pkgname=gitstats-git
pkgver=294.55c5c28
pkgrel=1
pkgdesc="A statistics generator for git repositories."
arch=("any")
url="http://gitstats.sourceforge.net"
license=('GPL3')
depends=('git' 'python2' 'gnuplot')
source=("git+https://github.com/hoxu/gitstats.git")
md5sums=("SKIP")

pkgver() {
  cd gitstats
  printf '%s.%s\n' \
    "$(git rev-list --count master)" \
    "$(git rev-parse --short master)"
}

package() {
  cd gitstats

  make install PREFIX="$pkgdir/usr"
}