blob: 648d2bdf409690092399cc79a9c31926dec5fda7 (
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
|
# Maintainer: Zenvie <134689569+Zenvie@users.noreply.github.com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgname=v2ray-rules-dat
pkgver=202407132209
pkgrel=1
pkgdesc="Enhanced edition of V2Ray rules dat files"
arch=(any)
url="https://github.com/Loyalsoldier/$pkgname"
license=(CC-BY-SA-4.0 MIT GPL-3.0-or-later)
provides=(v2ray-domain-list-community v2ray-geoip)
conflicts=(v2ray-domain-list-community v2ray-geoip)
source=("$url/releases/download/$pkgver/geoip.dat"
"$url/releases/download/$pkgver/geosite.dat"
"$url/releases/download/$pkgver/geoip.dat.sha256sum"
"$url/releases/download/$pkgver/geosite.dat.sha256sum"
"https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/master/LICENSE")
sha256sums=('4ba547e06ca0307b44d7e034881fba7aa84c87f1327ad4cf519226c9add491f6'
'd74030e84ebaccd8971211297f86a7a2de2928868ed9f5cecfa052eeaa2213b0'
'c905ce70feef7fa9c6915f81857673e1d29e8dbc7289abb8d21327b9b6366a9d'
'7c812410e6397d23faa03809839a22425742f2b2a3b767db05cbee1e1b9f924f'
'35f18e0331a1ecd1835400c50e3b367c2ce09f6c13d91c4a0f3cb11f71d3bbc3')
prepare() {
sha256sum -c *.dat.sha256sum
}
package() {
install -dm755 "$pkgdir/usr/share/v2ray"
install -Dm644 *.dat "$pkgdir/usr/share/v2ray"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
|