[arch-commits] Commit in clash/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Mar 7 14:53:09 UTC 2020


    Date: Saturday, March 7, 2020 @ 14:53:09
  Author: felixonmars
Revision: 591215

add -trimpath and run tests

Modified:
  clash/trunk/PKGBUILD

----------+
 PKGBUILD |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-07 14:52:46 UTC (rev 591214)
+++ PKGBUILD	2020-03-07 14:53:09 UTC (rev 591215)
@@ -20,9 +20,14 @@
 
 build() {
     cd "${pkgname}-${pkgver}"
-    go build -ldflags "-extldflags ${LDFLAGS} -X github.com/Dreamacro/clash/constant.Version=${pkgver} -w -s" -mod=readonly
+    go build -trimpath -ldflags "-extldflags ${LDFLAGS} -X github.com/Dreamacro/clash/constant.Version=${pkgver} -w -s" -mod=readonly
 }
 
+check() {
+    cd "${pkgname}-${pkgver}"
+    go test github.com/Dreamacro/clash/...
+}
+
 package() {
     cd "${srcdir}/${pkgname}-${pkgver}"
     install -Dm755 "clash" "${pkgdir}/usr/bin/clash"



More information about the arch-commits mailing list