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 /PKGBUILD | |
parent | 7d22056c73c06e2921cdc265eac2aa8c9552f381 (diff) | |
download | aur-ryzen-stabilizator-git.tar.gz |
Add go mod init when building
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}" } |