summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6d6b3431771e7060d5c66052fc2dada9cdddde5 (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
# Maintainer: Scott Lawrence <bytbox@gmail.com>

pkgname=sloc
pkgver=1.1
pkgrel=1
pkgdesc='Simple source-lines-of-code counter'
arch=('i686' 'x86_64')
url="https://github.com/bytbox/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
}