2021-09-09 04:38:01 -03:00

36 lines
1002 B
Plaintext

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=git-sizer
pkgver=1.4.0
pkgrel=1
pkgdesc="Compute various size metrics for a Git repository"
url="https://github.com/github/git-sizer"
license="MIT"
arch="all"
makedepends="go"
source="https://github.com/github/git-sizer/archive/v$pkgver/git-sizer-$pkgver.tar.gz
skip-test-exec.patch
"
export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath -modcacherw"
build() {
go build \
-ldflags="-s -w -X main.BuildVersion=$pkgver-r$pkgrel" \
-v -o bin/git-sizer
}
check() {
go test ./...
}
package() {
install -Dm755 bin/git-sizer "$pkgdir"/usr/bin/git-sizer
}
sha512sums="
4ef10ab9b01e3228a6899972a4964d9fb0a5ea4b8f1516f3753cb92f12de346a95908046a89b491fa766afd262c1befd15d7f5654701afb31faa1db07b0c96f4 git-sizer-1.4.0.tar.gz
03a990ea83ccb5d224ae23151285824ed238ece40150f88e0ea0bc841b099ac49b64523c83db10e9ae924b1ff16375a375d79796df9235380c025a61e4ab1581 skip-test-exec.patch
"