1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
2 # Contributor: AUR[ogarcia]
7 pkgdesc='Compute various size metrics for a Git repository'
8 arch=(x86_64 i686 armv6h armv7h aarch64)
9 url="https://github.com/github/$pkgname"
13 _archive="$pkgname-$pkgver"
14 source=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz")
15 sha256sums=('07a5ac5f30401a17d164a6be8d52d3d474ee9c3fb7f60fd83a617af9f7e902bb')
19 export CGO_CPPFLAGS="$CPPFLAGS"
20 export CGO_CFLAGS="$CFLAGS"
21 export CGO_CXXFLAGS="$CXXFLAGS"
22 export CGO_LDFLAGS="$LDFLAGS"
28 -ldflags="-X main.BuildVersion=$pkgver -linkmode external" \
32 # Note: Upstream tests seem to do goofy things like assume a terminal, if
33 # anybody knows how to run these so they work in a chroot build properly I'm
34 # open to contributions.
42 install -Dm0755 -t "$pkgdir/usr/bin/" git-sizer
43 install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
44 install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.md