diff options
author | Sergio Correia | 2022-01-10 18:09:21 -0300 |
---|---|---|
committer | Sergio Correia | 2022-01-10 18:09:21 -0300 |
commit | 228e274e6bd7218024d358c908e5a483a07b967b (patch) | |
tree | 60101597370cb25e60f2e3cb47d6d9ed3d89e50d | |
parent | 7d22056c73c06e2921cdc265eac2aa8c9552f381 (diff) | |
download | aur-ryzen-stabilizator-git.tar.gz |
Add go mod init when building
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = ryzen-stabilizator-git pkgdesc = Simple Go program to enable/disable C6 C-state, processor boosting, address space layout randomization (ASLR) and the Power Supply Idle Control workaround on an AMD Ryzen processor, in order to help with the infamous 'MCE-random-reboots-while-idle' issue. pkgver = r19.90a2f7a - pkgrel = 1 + pkgrel = 2 url = https://github.com/qrwteyrutiyoup/ryzen-stabilizator arch = x86_64 license = Apache @@ -3,7 +3,7 @@ pkgname=ryzen-stabilizator-git _pkgname=ryzen-stabilizator pkgver=r19.90a2f7a -pkgrel=1 +pkgrel=2 pkgdesc="Simple Go program to enable/disable C6 C-state, processor boosting, address space layout randomization (ASLR) and the Power Supply Idle Control workaround on an AMD Ryzen processor, in order to help with the infamous 'MCE-random-reboots-while-idle' issue." @@ -36,6 +36,7 @@ prepare() { build() { export GOPATH="${srcdir}/go" cd "${GOPATH}/src/${_pkgname}" + go mod init go get go build -ldflags "-X main.version=${pkgver}-${pkgrel}" } |