blob: 0fc0537a629a1bd88a51a971200a31ee7fd6fca9 (
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=202406212210
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=('85279ae74b7964623850f6ca7b996fffc65301a157fb45ccc79ae658fa026619'
'920d4eaf7cfa1af03c01ff476afea51285d8eddfca1649088155858fde296e35'
'8c839a2327655654984c395163f1b216680e999e46a01e9196d331ef04a3acc7'
'37c106ab03361afd7449271874978972377befd2ca869d88b2d4a8341f145e1b'
'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"
}
|