summaryrefslogtreecommitdiff
path: root/gitstats-git/PKGBUILD
blob: dfdb2930e9063ff40426452abd66006696aed3d1 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Timo Schmiade <the_isz@gmx.de>
pkgname=gitstats-git
pkgver=294.55c5c28
_commit="${pkgver##*.}"
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#commit=${_commit}")
md5sums=("SKIP")

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

package() {
  cd gitstats

  make install PREFIX="$pkgdir/usr"
}