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"