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