[arch-commits] Commit in clash/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Jun 26 07:04:48 UTC 2020
Date: Friday, June 26, 2020 @ 07:04:48
Author: felixonmars
Revision: 653519
upgpkg: clash 0.20.0-2
Modified:
clash/trunk/PKGBUILD
----------+
PKGBUILD | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-26 07:04:48 UTC (rev 653518)
+++ PKGBUILD 2020-06-26 07:04:48 UTC (rev 653519)
@@ -4,7 +4,7 @@
pkgname=clash
pkgver=0.20.0
-pkgrel=1
+pkgrel=2
pkgdesc="A rule based proxy in Go"
arch=('x86_64')
url="https://github.com/Dreamacro/clash"
@@ -19,8 +19,14 @@
'a21b952368442246c5fc2c218248296a599bb71b4e12ac525b0bee200aad086545a0269c6b5de7bd876bf44a6bf4d71942bf11a2e47825010d4e5e38bae354d8')
build() {
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
cd "${pkgname}-${pkgver}"
- go build -trimpath -ldflags "-extldflags ${LDFLAGS} -X github.com/Dreamacro/clash/constant.Version=${pkgver} -w -s" -mod=readonly
+ go build -trimpath -ldflags "-X github.com/Dreamacro/clash/constant.Version=${pkgver}" -mod=readonly
}
check() {
More information about the arch-commits
mailing list