mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 08:05:13 +02:00
31 lines
852 B
Text
31 lines
852 B
Text
# Contributor: Andrej Kolchin <KAAtheWise@protonmail.com>
|
|
# Maintainer: Andrej Kolchin <KAAtheWise@protonmail.com>
|
|
pkgname=scc
|
|
pkgver=3.5.0
|
|
pkgrel=3
|
|
pkgdesc="Very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go"
|
|
url="https://github.com/boyter/scc"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/boyter/scc/archive/v$pkgver.tar.gz"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v -o bin/scc
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 bin/scc -t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
92c8fc2171bfce1c8e132c0e7e6dba70bdb26fb16acac4806d5a69c2fdaded66b0dba72767f356b69bc3074c39d251e3fea91bc5b6cf942bb5d79c2c4960991e scc-3.5.0.tar.gz
|
|
"
|