blob: 50d3dabf14fd3bef2e00b67dc414f9bf810d794b (
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=202407152211
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=('fd224548b0309f0810b03c13ae61cc41a6968fe6b1639c82de371485200fbcbb'
'5e15b0074a1e55a5f4b4fa6817fa8b1d12f5c6e21f906079957070af89296751'
'2a189edbd913172257960946fea01b430e552a7d2d3eb3c6b6dd430be37633fc'
'c1b63cc67749c46879783c32c9abc061af19e8d4ea744cff6d1f891545a0131c'
'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"
}
|