diff options
author | Allen Zhong | 2020-02-19 14:47:52 +0800 |
---|---|---|
committer | Allen Zhong | 2020-02-19 14:47:52 +0800 |
commit | 2849fe99104ff134f34175557eb71aab3a8e7862 (patch) | |
tree | a66daba3f2d892e4a170c46a48bd3b44422814fa | |
parent | 104a06354c036ab470b0f326788d967201d90d11 (diff) | |
download | aur-2849fe99104ff134f34175557eb71aab3a8e7862.tar.gz |
add -trimpath build flag
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 5 insertions, 5 deletions
@@ -1,13 +1,12 @@ pkgbase = tidb pkgdesc = A distributed HTAP database compatible with the MySQL protocol pkgver = 3.0.9 - pkgrel = 1 + pkgrel = 2 url = https://github.com/pingcap/tidb arch = x86_64 license = Apache makedepends = go makedepends = make - makedepends = git depends = tikv provides = tidb-server backup = etc/tidb/tidb.toml @@ -2,9 +2,9 @@ # Maintainer: Allen Zhong <zhongbenli@pingcap.com> pkgname=tidb pkgver=3.0.9 -pkgrel=1 +pkgrel=2 pkgdesc='A distributed HTAP database compatible with the MySQL protocol' -makedepends=('go' 'make' 'git') +makedepends=('go' 'make') arch=('x86_64') url='https://github.com/pingcap/tidb' license=('Apache') @@ -40,8 +40,9 @@ build() { # Remove all git operations. sed -i '/(shell git /d' Makefile _LDFLAGS="-X github.com/pingcap/parser/mysql.TiDBReleaseVersion=$pkgver -X $_gopkgname/util/printer.TiDBGitHash=v$pkgver -X $_gopkgname/util/printer.TiDBGitBranch=release" + _BUILD_FLAG="-trimpath" - LDFLAGS=$_LDFLAGS make server + BUILD_FLAG=$_BUILD_FLAG LDFLAGS=$_LDFLAGS make server } package() { |