mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
35 lines
871 B
Plaintext
35 lines
871 B
Plaintext
# Contributor: mio <miyopan@e.email>
|
|
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
|
pkgname=gauth
|
|
pkgver=1.3.0
|
|
pkgrel=0
|
|
pkgdesc="Replacement for Google Authenticator"
|
|
url="https://github.com/pcarrier/gauth"
|
|
license="ISC"
|
|
arch="all"
|
|
makedepends="go"
|
|
source="https://github.com/pcarrier/gauth/archive/v$pkgver/gauth-v$pkgver.tar.gz"
|
|
|
|
export GOFLAGS="$GOFLAGS -modcacherw"
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v -x -o "$builddir"/bin/
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"/gauth
|
|
go test -v -x
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/usr/bin
|
|
install -p -m755 "$builddir"/bin/* "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
c2d726d8186cbfb5cc890f6ddf098a68ef2a868f9975376ede70a47c5c49f63034ebea3766d63ad25b02b967769d935ef3b46bf6530b7607e1904812d861f27f gauth-v1.3.0.tar.gz
|
|
"
|