From 84d3384fc48476222674ecfda44742aeed986fa8 Mon Sep 17 00:00:00 2001 From: wcyat Date: Fri, 19 May 2023 22:38:33 +0800 Subject: [PATCH] feat: compile flags, chore: update version https://github.com/FabioLolix/AURFIX/blob/main/n/nordvpn-git/PKGBUILD --- .SRCINFO | 2 +- PKGBUILD | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index a52ddaf3bb7a..9d57f8877eed 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = nordvpn-git pkgdesc = NordVPN client for Linux (Git version) - pkgver = r34.9319a81 + pkgver = r53.6986e6d pkgrel = 1 url = https://github.com/NordSecurity/nordvpn-linux install = nordvpn-git.install diff --git a/PKGBUILD b/PKGBUILD index 51c7b1df1e71..84cbc3244786 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,5 @@ pkgname=nordvpn-git -pkgver=r34.9319a81 +pkgver=r53.6986e6d pkgrel=1 pkgdesc="NordVPN client for Linux (Git version)" arch=('x86_64' 'arm64') @@ -25,6 +25,11 @@ prepare() { build() { cd "${pkgname}" cp .env.sample .env + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" mage mage build:binaries }