summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56544a4b361643d6f85ac50b809213faaeaf6d68 (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: spider-mario <spidermario@free.fr>
# Contributor: Serge Ziryukin <ftrvxmtrx@gmail.com>
pkgname=ohcount-git
pkgver=2.0.1.312.g4fb66a8
epoch=1
pkgrel=1
pkgdesc="Ohcount is a source code line counter."
arch=('i686' 'x86_64')
url="https://github.com/blackducksw/ohcount"
license=('GPL')
depends=('pcre')
makedepends=('git' 'bash' 'ruby' 'ragel' 'gperf')
provides=('ohcount')
conflicts=('ohcount')
install=
source=('git+https://github.com/blackducksw/ohcount.git')
sha512sums=(SKIP)

pkgver() {
  cd ohcount
  git describe | tr - .
}

build() {
  cd ohcount
  ./build ohcount
}

package() {
  cd ohcount

  install --directory "$pkgdir/usr/bin"
  install bin/ohcount "$pkgdir/usr/bin/"
}