lilac/repo/sing-geoip/PKGBUILD
2023-05-15 05:34:26 +00:00

25 lines
975 B
Bash

# Maintainer: everyx <lunt.luo#gmail.com>
pkgname=sing-geoip
pkgver=20230112
pkgrel=5
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"
}