diff options
author | Tony Lambiris | 2021-12-11 03:43:19 -0500 |
---|---|---|
committer | Tony Lambiris | 2021-12-11 03:43:19 -0500 |
commit | 44ad68ea3875a2cacab9d7bc116a401296ade7f5 (patch) | |
tree | 73305a5f45b25266747897b10fcbf210d543e4c5 | |
parent | 6d3568ed3f0d522af4c0f91ad1c15e592b0a3790 (diff) | |
download | aur-44ad68ea3875a2cacab9d7bc116a401296ade7f5.tar.gz |
Version bump
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 7 insertions, 14 deletions
@@ -1,7 +1,7 @@ pkgbase = virusgotal-git pkgdesc = VirusTotal zero dependency command line client. pkgver = 1.0.2.r5.g295d2dc - pkgrel = 2 + pkgrel = 3 url = https://github.com/moldabekov/virusgotal arch = x86_64 license = MIT @@ -12,4 +12,3 @@ pkgbase = virusgotal-git sha256sums = SKIP pkgname = virusgotal-git - @@ -2,7 +2,7 @@ pkgname=virusgotal-git pkgver=1.0.2.r5.g295d2dc -pkgrel=2 +pkgrel=3 pkgdesc='VirusTotal zero dependency command line client.' arch=(x86_64) url="https://github.com/moldabekov/virusgotal" @@ -27,9 +27,7 @@ prepare() { cd "${srcdir}/go/src/github.com/moldabekov/virusgotal" - export GO111MODULE="auto" - export GOPATH="${srcdir}/go" - + export GOPATH="${srcdir}/go" GOFLAGS="-modcacherw" go get -v ./... } @@ -38,18 +36,14 @@ build() { mkdir -p build - export GO111MODULE="auto" - export GOPATH="${srcdir}/go" - - go build -ldflags "-s -w" \ - -gcflags="all=-trimpath=${GOPATH}/src" \ - -asmflags="all=-trimpath=${GOPATH}/src" \ + export GOPATH="${srcdir}/go" GOFLAGS="-modcacherw" + go build -trimpath -ldflags "-s -w" \ -o build/virusgotal } package() { cd "${srcdir}/go/src/github.com/moldabekov/virusgotal" - install -Dm755 "./build/virusgotal" "${pkgdir}/usr/bin/virusgotal" - install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm755 "build/virusgotal" "${pkgdir}/usr/bin/virusgotal" + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |