diff --git a/repo/sing-geoip/PKGBUILD b/repo/sing-geoip/PKGBUILD new file mode 100644 index 0000000..054b783 --- /dev/null +++ b/repo/sing-geoip/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: everyx + +pkgname=sing-geoip +pkgver=20230112 +pkgrel=4 + +pkgdesc='sing-geoip database' +arch=('any') +_repo="SagerNet/${pkgname}" +url="https://github.com/${_repo}" +license=('GPL3') + +source=("${pkgver}.geoip-cn.db::${url}/releases/download/${pkgver}/geoip-cn.db" + "${pkgver}.geoip.db::${url}/releases/download/${pkgver}/geoip.db" + "${pkgver}.LICENSE::https://raw.githubusercontent.com/${_repo}/${pkgver}/LICENSE") +sha256sums=('c1832e5a14e532f67784c1d4acdce7d123d871f80837649300806d515f053b84' + '06155d3109b6aa6e4b6de2ef87ef372227eafb896520af7ddc353cffbcfec813' + '2f02b7486bcfa90d115c71a20437f3906b6fd5bef81c5dc0efd341399e89d0fd') + +package() { + install -Dm644 "${pkgver}.geoip-cn.db" "${pkgdir}/usr/share/${pkgname}/geoip-cn.db" + install -Dm644 "${pkgver}.geoip.db" "${pkgdir}/usr/share/${pkgname}/geoip.db" + install -Dm644 "${pkgver}.LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}