blob: 83a43c7d1627b89a352d8d6753a68ec3c7b2e774 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: everyx <lunt.luo#gmail.com>
pkgname=sing-geosite-git
_pkgname=sing-geosite
pkgver=20220916160215
pkgrel=1
pkgdesc='sing-geosite database'
arch=('any')
_repo="SagerNet/${_pkgname}"
url="https://github.com/${_repo}"
license=('GPL3')
makedepends=('go')
optdepends=('sing-box: The universal proxy platform')
conflicts=('sing-geosite')
provides=('sing-geosite')
_branch=main
source=("src.${pkgver}.tar.gz::https://codeload.github.com/${_repo}/tar.gz/refs/heads/${_branch}")
sha256sums=(SKIP)
pkgver() {
curl -s https://api.github.com/repos/v2fly/domain-list-community/releases/latest \
| grep "tag_name" | cut -d '"' -f 4
}
_builddir="${_pkgname}-${_branch}"
build () {
cd "$_builddir"
NO_SKIP=true go run -v .
}
package() {
install -Dm644 "${_builddir}/geosite.db" -t "${pkgdir}/usr/share/${pkgname}"
install -Dm644 "${_builddir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|