diff options
author | Mark Wagie | 2022-02-19 11:19:49 -0700 |
---|---|---|
committer | Mark Wagie | 2022-02-19 11:19:49 -0700 |
commit | ac7a36bfc221106a6fd36cdaf3a2ed05501c7880 (patch) | |
tree | 5cd143fadc26a294d4574865fe56b92fb9d99f0f | |
parent | ccb01d6fba34c41de82a21e7cd443224b7dc1028 (diff) | |
download | aur-ac7a36bfc221106a6fd36cdaf3a2ed05501c7880.tar.gz |
use local GOPATH
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 5 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = gitin pkgdesc = Commit/branch/workdir explorer for git pkgver = 0.2.5 - pkgrel = 2 + pkgrel = 3 url = https://github.com/isacikgoz/gitin arch = x86_64 license = BSD @@ -1,7 +1,7 @@ # Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> pkgname=gitin pkgver=0.2.5 -pkgrel=2 +pkgrel=3 pkgdesc="Commit/branch/workdir explorer for git" arch=('x86_64') url="https://github.com/isacikgoz/gitin" @@ -12,25 +12,20 @@ source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('01c831230f9c5952ed43755d0503e6fcee7c1e91613f06cff28606d03115d727') prepare() { - export GOPATH="$srcdir/gopath" - go clean -modcache - - if [ -d "$srcdir/git2go" ]; then - rm -rf "$srcdir/git2go" + if [ -d git2go ]; then + rm -rf git2go fi } build() { cd "$pkgname-$pkgver" + 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" make - - # Clean mod cache for makepkg -C - go clean -modcache } package() { |