From 7d456fcc85680711c2b147b1bb4945fb870d3d35 Mon Sep 17 00:00:00 2001 From: bgme Date: Tue, 30 Jan 2024 03:16:47 +0800 Subject: [PATCH] update sing-geoip update sing-geosite --- repo/sing-geoip/PKGBUILD | 5 ++++- repo/sing-geosite/PKGBUILD | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/repo/sing-geoip/PKGBUILD b/repo/sing-geoip/PKGBUILD index 864dd96..4cef950 100644 --- a/repo/sing-geoip/PKGBUILD +++ b/repo/sing-geoip/PKGBUILD @@ -2,7 +2,7 @@ pkgname=sing-geoip pkgver=20240112 -pkgrel=1 +pkgrel=2 pkgdesc='sing-geoip database' arch=('any') url="https://github.com/SagerNet/sing-geoip" @@ -27,4 +27,7 @@ package() { install -Dm644 "geoip-cn.db" "${pkgdir}/usr/share/${pkgname}/geoip-cn.db" install -Dm644 "geoip.db" "${pkgdir}/usr/share/${pkgname}/geoip.db" install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + cd "rule-set" + install -Dm644 -t "${pkgdir}/usr/share/${pkgname}/rule-set" ./*.srs } diff --git a/repo/sing-geosite/PKGBUILD b/repo/sing-geosite/PKGBUILD index b59414a..710ad84 100644 --- a/repo/sing-geosite/PKGBUILD +++ b/repo/sing-geosite/PKGBUILD @@ -2,7 +2,7 @@ pkgname=sing-geosite pkgver=20240129100418 -pkgrel=1 +pkgrel=2 pkgdesc='sing-geosite database' arch=('any') url="https://github.com/SagerNet/sing-geosite" @@ -19,11 +19,14 @@ build() { export NO_SKIP=true cd "${srcdir}/${pkgname}" - GOTOOLCHAIN=go1.20.10 go run -v . + go run -v . } package() { cd "${srcdir}/${pkgname}" install -Dm644 "geosite.db" "${pkgdir}/usr/share/${pkgname}/geosite.db" install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + cd "rule-set" + install -Dm644 -t "${pkgdir}/usr/share/${pkgname}/rule-set" ./*.srs }