summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57697248429ae18db59cfbeef349b75208829635 (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
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=datastat-git
pkgver=20131228
pkgrel=1
pkgdesc="Simple command line statistics"
url="http://sourceforge.net/projects/datastat/"
license=("GPL3")
arch=('i686' 'x86_64')
makedepends=('git')
depends=('readline')
source=("git://git.code.sf.net/p/datastat/code")
md5sums=('SKIP')

pkgver() {
  cd code 
  git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}

build() {
  cd code
  make datastat
}

check() {
  cd code
  make tests
}

package() {
  cd code
  install -Dm755 datastat "$pkgdir/usr/bin/datastat"
  install -Dm644 datastat.1 "$pkgdir/usr/share/man/man1/datastat.1"
}