summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a31b0620b7c54d827b25ad848ffe54fb6f243b43 (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
# Maintainer: Kyle Sferrazza <kyle.sferrazza@gmail.com>
# Contributor: Daniel M. Capella <polyzen@archlinux.info>
# Contributor: Scott Lawrence <bytbox@gmail.com>

pkgname=sloc
pkgver=0.3.1
pkgrel=4
pkgdesc='Simple source-lines-of-code counter'
arch=('i686' 'x86_64')
url="http://git.bytbox.net/sloc/"
license=('MIT')
optdepends=('perl-datetime' 'perl-json' 'perl-switch' 'gnuplot')
makedepends=('git' 'go')
source=("sloc::git+$url#tag=v$pkgver")
md5sums=('SKIP')

build() {
  cd sloc
  ./gen-man.sh

  cd sloc
  go build -o sloc
}

package() {
  cd sloc
  install -Dm755 sloc/sloc "$pkgdir"/usr/bin/sloc
  install -Dm755 reposloc "$pkgdir"/usr/bin/reposloc
  install -Dm644 reposloc.1 "$pkgdir"/usr/share/man/man1/reposloc.1
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/sloc/LICENSE
}