update sing-geoip sing-geosite

This commit is contained in:
bgme 2023-05-16 13:17:51 +08:00
parent ebdfdb31b5
commit abb096c998
4 changed files with 57 additions and 36 deletions

View file

@ -1,24 +1,30 @@
# Maintainer: everyx <lunt.luo#gmail.com> # Maintainer: bgme <i@bgme.me>
pkgname=sing-geoip pkgname=sing-geoip
pkgver=20230112 pkgver=20230512
pkgrel=5 pkgrel=1
pkgdesc='sing-geoip database' pkgdesc='sing-geoip database'
arch=('any') arch=('any')
_repo="SagerNet/${pkgname}" url="https://github.com/SagerNet/sing-geoip"
url="https://github.com/${_repo}" license=('custom:sing-geoip')
license=('GPL3') makedepends=('git' 'go1.19')
source=("git+https://github.com/SagerNet/sing-geoip.git")
sha256sums=('SKIP')
source=("${pkgver}.geoip-cn.db::${url}/releases/download/${pkgver}/geoip-cn.db" pkgver() {
"${pkgver}.geoip.db::${url}/releases/download/${pkgver}/geoip.db" curl https://api.github.com/repos/Dreamacro/maxmind-geoip/releases/latest | jq -r ".name"
"${pkgver}.LICENSE::https://raw.githubusercontent.com/${_repo}/${pkgver}/LICENSE") }
sha256sums=('c1832e5a14e532f67784c1d4acdce7d123d871f80837649300806d515f053b84'
'06155d3109b6aa6e4b6de2ef87ef372227eafb896520af7ddc353cffbcfec813' build() {
'2f02b7486bcfa90d115c71a20437f3906b6fd5bef81c5dc0efd341399e89d0fd') export NO_SKIP=true
cd "${srcdir}/${pkgname}"
go1.19 run -v .
}
package() { package() {
install -Dm644 "${pkgver}.geoip-cn.db" "${pkgdir}/usr/share/${pkgname}/geoip-cn.db" cd "${srcdir}/${pkgname}"
install -Dm644 "${pkgver}.geoip.db" "${pkgdir}/usr/share/${pkgname}/geoip.db" install -Dm644 "geoip-cn.db" "${pkgdir}/usr/share/${pkgname}/geoip-cn.db"
install -Dm644 "${pkgver}.LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "geoip.db" "${pkgdir}/usr/share/${pkgname}/geoip.db"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
} }

View file

@ -2,12 +2,17 @@ maintainers:
- github: yingziwu - github: yingziwu
email: i@bgme.me email: i@bgme.me
repo_depends:
- go1.19
build_prefix: extra-x86_64 build_prefix: extra-x86_64
pre_build: aur_pre_build pre_build: vcs_update
post_build: aur_post_build post_build: git_pkgbuild_commit
update_on: update_on:
- source: aur - source: github
aur: sing-geoip github: SagerNet/sing-geoip
- source: cmd
cmd: curl https://api.github.com/repos/Dreamacro/maxmind-geoip/releases/latest | jq -r ".name"

View file

@ -1,21 +1,29 @@
# Maintainer: everyx <lunt.luo#gmail.com> # Maintainer: everyx <lunt.luo#gmail.com>
pkgname=sing-geosite pkgname=sing-geosite
pkgver=20230319124808 pkgver=20230515070747
pkgrel=4 pkgrel=1
pkgdesc='sing-geosite database' pkgdesc='sing-geosite database'
arch=('any') arch=('any')
_repo="SagerNet/${pkgname}" url="https://github.com/SagerNet/sing-geosite"
url="https://github.com/${_repo}" license=('custom:sing-geosite')
license=('GPL3') makedepends=('git' 'go')
source=("git+https://github.com/SagerNet/sing-geosite.git")
sha256sums=('SKIP')
source=("${pkgver}.geosite.db::${url}/releases/download/${pkgver}/geosite.db" pkgver() {
"${pkgver}.LICENSE::https://raw.githubusercontent.com/${_repo}/${pkgver}/LICENSE") curl https://api.github.com/repos/v2fly/domain-list-community/releases/latest | jq -r ".name"
sha256sums=('66794196faaf7f321e96648d5e65109c41838ff8ccf5d76733b44419133d130c' }
'2f02b7486bcfa90d115c71a20437f3906b6fd5bef81c5dc0efd341399e89d0fd')
build() {
export NO_SKIP=true
cd "${srcdir}/${pkgname}"
go run -v .
}
package() { package() {
install -Dm644 "${pkgver}.geosite.db" "${pkgdir}/usr/share/${pkgname}/geosite.db" cd "${srcdir}/${pkgname}"
install -Dm644 "${pkgver}.LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "geosite.db" "${pkgdir}/usr/share/${pkgname}/geosite.db"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
} }

View file

@ -4,10 +4,12 @@ maintainers:
build_prefix: extra-x86_64 build_prefix: extra-x86_64
pre_build: aur_pre_build pre_build: vcs_update
post_build: aur_post_build post_build: git_pkgbuild_commit
update_on: update_on:
- source: aur - source: github
aur: sing-geosite github: SagerNet/sing-geosite
- source: cmd
cmd: curl https://api.github.com/repos/v2fly/domain-list-community/releases/latest | jq -r ".name"