blob: 4ca21fc2936d542d3e03c1a325c26b7dd2e40ab3 (
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
|
# Maintainer: xiliuya <xiliuya@aliyun.com>
pkgname=v2ray-bin
pkgver=5.29.3
pkgrel=1
pkgdesc="A platform for building proxies to bypass network restrictions"
arch=('x86_64')
url="https://github.com/v2fly/v2ray-core"
license=('MIT')
provides=('v2ray')
conflicts=('v2ray' 'v2ray-geoip' 'v2ray-domain-list-community')
depends=('glibc')
options=('!debug')
source=("${pkgname%-bin}_${pkgver}.zip::https://github.com/v2fly/v2ray-core/releases/download/v${pkgver}/v2ray-linux-64.zip"
LICENSE)
sha512sums=('8d5e71837dfc2d2f510fd5d18e9b023ad3b406ccd709a94854c10da4abef8f9f60e645ade1c8f6f23f969c24c207539de300b483a2643eedf3edeb620f73356b'
'866fed989ae66146085718c7d12dcff81de0e3f6be426a8407ddf8c7da4dc68f71e3ff1324621a25e8f6edfdad3fc6ff2e6f72971731a0ff248a35808a6599c9')
package() {
cd "$srcdir"
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/v2ray/
install -Dm644 systemd/system/v2ray.service -t "$pkgdir"/usr/lib/systemd/system/
install -Dm644 systemd/system/v2ray@.service -t "$pkgdir"/usr/lib/systemd/system/
install -Dm644 *.json -t "$pkgdir"/etc/v2ray/
install -Dm755 v2ray -t "$pkgdir"/usr/bin/
# install geoip
install -Dm644 geoip.dat "$pkgdir"/usr/share/v2ray/geoip.dat
# install v2ray-domain-list-community
install -Dm644 geosite.dat "$pkgdir"/usr/share/v2ray/geosite.dat
}
|