diff options
author | Rayr | 2022-09-13 09:00:04 +0300 |
---|---|---|
committer | Rayr | 2022-09-13 09:00:04 +0300 |
commit | 2285a23b27b57da727e6df8fe78d53f644decae6 (patch) | |
tree | e966774f37f176b96fd487e50e3710be927fa062 /PKGBUILD | |
parent | 6fe07b1027131246c0bd7bc7b90f512fe95b22e6 (diff) | |
download | aur-weather-cli.tar.gz |
Added Go Flags
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -2,7 +2,7 @@ pkgname=weather-cli pkgver=1.2.2 -pkgrel=1 +pkgrel=2 pkgdesc="An app made to get weather information through the terminal written in Go" arch=('x86_64') url="https://github.com/Rayrsn/Weather-Cli" @@ -10,6 +10,14 @@ license=('GPL') makedepends=('go') source=("https://github.com/Rayrsn/Weather-Cli/archive/refs/tags/$pkgver.zip") md5sums=('c527ccfa94eae146d593ed69febf8f66') + +# Go Flags https://wiki.archlinux.org/title/Go_package_guidelines#Flags_and_build_options +export CGO_CPPFLAGS="${CPPFLAGS}" +export CGO_CFLAGS="${CFLAGS}" +export CGO_CXXFLAGS="${CXXFLAGS}" +export CGO_LDFLAGS="${LDFLAGS}" +export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + build() { cd "Weather-Cli-$pkgver" go build |