diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 10 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = weather-cli pkgdesc = An app made to get weather information through the terminal written in Go pkgver = 1.2.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Rayrsn/Weather-Cli arch = x86_64 license = GPL @@ -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 |