summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0fd3e3817da040e5686df12525dede0bc8b2f5fe (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
# Maintainer: Daniel M. Capella <polycitizen@gmail.com>
# Contributor: Scott Lawrence <bytbox@gmail.com>

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

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

  cd sloc
  go build -o sloc
}

package() {
  cd sloc
  install -D -m755 sloc/sloc "$pkgdir"/usr/bin/sloc
  install -D -m755 reposloc "$pkgdir"/usr/bin/reposloc
  install -D -m644 reposloc.1 "$pkgdir"/usr/share/man/man1/reposloc.1
}

# vim:set ts=2 sw=2 et: