summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c22982d493f5cbb11a2b07c08f868c4dd79f96b3 (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
# Maintainer: Matthew Sexton <mssxtn@gmail.com>

pkgname=gocloc
pkgver=0.5.2
pkgrel=2
pkgdesc="A little fast cloc(Count Lines Of Code)"
arch=(x86_64 i686 pentium4 arm armv6h armv7h aarch64)
url="https://github.com/hhatto/gocloc"
license=(MIT)
makedepends=(go)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/hhatto/gocloc/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('c8f95201bc6042767de7059cfd6a2a37799b3bf909ec61029baffe0f6ccc509d')



build() {
  cd "${pkgname}-${pkgver}"
  make
}

check() {
  cd "${pkgname}-${pkgver}"
  make test
}

package() {
  cd "${pkgname}-${pkgver}"
  install -Dm 755 bin/gocloc -t "${pkgdir}"/usr/bin
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}