diff options
author | Allen Zhong | 2020-02-19 14:43:19 +0800 |
---|---|---|
committer | Allen Zhong | 2020-02-19 14:43:19 +0800 |
commit | 920a9c0d2a473d7d6857ffd30217da2df6c29622 (patch) | |
tree | 7764ae0689292916ee58ad93d8cd0a6e704233df | |
parent | 46e4ecfeca0669913490d09aa692f0917b5da0ee (diff) | |
download | aur-920a9c0d2a473d7d6857ffd30217da2df6c29622.tar.gz |
add -trimpath build flag
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = tikv-pd pkgdesc = Manage and schedule the TiKV cluster. pkgver = 3.0.9 - pkgrel = 1 + pkgrel = 2 url = https://github.com/pingcap/pd arch = x86_64 license = Apache @@ -2,7 +2,7 @@ # Maintainer: Allen Zhong <zhongbenli@pingcap.com> pkgname=tikv-pd pkgver=3.0.9 -pkgrel=1 +pkgrel=2 pkgdesc='Manage and schedule the TiKV cluster.' makedepends=('go' 'make' 'git') arch=('x86_64') @@ -28,6 +28,9 @@ prepare() { rm -rf "$GOPATH/src/$_gopkgname" mkdir -p `dirname "$GOPATH/src/$_gopkgname"` mv -Tv "$srcdir/pd-${pkgver}" "$GOPATH/src/$_gopkgname" + + # patch Makefile + sed -i 's/go build/go build -trimpath/g' "$GOPATH/src/$_gopkgname/Makefile" } build() { |