diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 10 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = currencyconverter pkgdesc = A CLI program that converts currencies using currency exchange rates pkgver = 1.0.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Rayrsn/currencyConverter arch = x86_64 license = GPL @@ -2,7 +2,7 @@ pkgname=currencyconverter pkgver=1.0.2 -pkgrel=1 +pkgrel=2 pkgdesc="A CLI program that converts currencies using currency exchange rates" arch=('x86_64') url="https://github.com/Rayrsn/currencyConverter" @@ -10,6 +10,14 @@ license=('GPL') makedepends=('go') source=("https://github.com/Rayrsn/currencyConverter/archive/refs/tags/$pkgver.zip") md5sums=('f07335385cde0228ca6b215a3f3c0922') + +# 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 "currencyConverter-$pkgver" go build |