# Maintainer: M Hickford pkgname=git-credential-oauth pkgver=0.13.4 pkgrel=5 pkgdesc="Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth" url="https://github.com/hickford/git-credential-oauth" arch="all" license="Apache-2.0" makedepends="go" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/hickford/git-credential-oauth/archive/v$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -ldflags=-X=main.version=$pkgver" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -v } check() { go test ./... } package() { install -Dm755 git-credential-oauth -t "$pkgdir"/usr/bin/ install -Dm0644 git-credential-oauth.1 -t "$pkgdir"/usr/share/man/man1/ } sha512sums=" f7a2c7f416bc6f5880d0840b5c93966996945b903ecf094a15e47978f308dc6a1ffd7f976c7c5ea1c04fe46732dc139cab1ae6f88d31190ac2997d2038b8fb9f git-credential-oauth-0.13.4.tar.gz "