diff options
author | lilac | 2022-12-19 22:10:14 +0800 |
---|---|---|
committer | lilac | 2022-12-19 22:10:14 +0800 |
commit | f29fd994962bf0b47dd479e28da0c5177b6cda94 (patch) | |
tree | ddb8f014b0f1a760ef60ef51f586a0c4753d6e4e | |
parent | b6be69a2a26936ca55215596e369a8181d4567e2 (diff) | |
download | aur-f29fd994962bf0b47dd479e28da0c5177b6cda94.tar.gz |
[lilac] updated to 1.13.2-3
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 13 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = clash-meta pkgdesc = Another Clash Kernel by MetaCubeX pkgver = 1.13.2 - pkgrel = 1 + pkgrel = 3 url = https://github.com/MetaCubeX/Clash.Meta arch = x86_64 arch = aarch64 @@ -2,7 +2,7 @@ pkgname=clash-meta pkgver=1.13.2 -pkgrel=1 +pkgrel=3 pkgdesc="Another Clash Kernel by MetaCubeX" arch=("x86_64" 'aarch64') url="https://github.com/MetaCubeX/Clash.Meta" @@ -26,8 +26,17 @@ sha256sums=('8f11a82a2eb24d8c0aea027b4674cc6d4165c2f7c8e9c7e136b7961f4ce22bf8' build(){ cd "${srcdir}"/Clash.Meta-${pkgver} - GOOS=linux go build -o ${pkgname}-${pkgver} - + BUILDTIME=$(date -u) + GOOS=linux CGO_ENABLED=0 go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-linkmode external -extldflags \"${LDFLAGS}\" \ + -X \"github.com/Dreamacro/clash/constant.Version=${pkgver}\" \ + -X \"github.com/Dreamacro/clash/constant.BuildTime=${BUILDTIME}\" \ + " \ + -tags with_gvisor -o ${pkgname}-${pkgver} } package() { cd "${srcdir}"/Clash.Meta-${pkgver} @@ -38,7 +47,6 @@ package() { install -Dm644 "config.yaml" -t "${pkgdir}/etc/clash-meta" install -Dm644 "clash-meta.service" -t "${pkgdir}/usr/lib/systemd/system" install -Dm644 "clash-meta@.service" -t "${pkgdir}/usr/lib/systemd/system" - ln -sf /etc/clash/Country.mmdb ${pkgdir}/etc/${pkgname}/Country.mmdb #geosite.dat from community repo does not work # ln -sf /usr/share/v2ray/geosite.dat ${pkgdir}/etc/${pkgname}/GeoSite.dat |