diff options
author | Slavi Pantaleev | 2023-03-25 17:39:58 +0200 |
---|---|---|
committer | Slavi Pantaleev | 2023-03-25 17:39:58 +0200 |
commit | 9f7e0a9e4f6282fd5d042ac39da851bb86f9c0d6 (patch) | |
tree | c8b4ed3c8e38ab0c93a2f7f682f69eaf07bb44c9 | |
parent | dbf1a8b1ce4710dceb26af8dd6a00a0e1d6b87a1 (diff) | |
download | aur-9f7e0a9e4f6282fd5d042ac39da851bb86f9c0d6.tar.gz |
Follow Go packaging guidelines better
https://wiki.archlinux.org/title/Go_package_guidelines
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = agru pkgdesc = Ansible-Galaxy Requirements Updater - a fast ansible-galaxy replacement pkgver = 0.1.2 - pkgrel = 1 + pkgrel = 2 url = https://gitlab.com/etke.cc/int/agru arch = any license = GPL3 @@ -3,7 +3,7 @@ pkgname=agru pkgver=0.1.2 -pkgrel=1 +pkgrel=2 pkgdesc="Ansible-Galaxy Requirements Updater - a fast ansible-galaxy replacement" arch=('any') url="https://gitlab.com/etke.cc/int/agru" @@ -14,7 +14,12 @@ source=('vcs-repository::git+https://gitlab.com/etke.cc/int/agru.git#tag=v'$pkgv md5sums=('SKIP') build() { - export GOPATH="$srcdir/go" + export GOPATH="$srcdir/gopath" + 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" cd "$srcdir/vcs-repository" |