blob: dcd4c8c9587f8f091a7fddab9a78ac93304b59c5 (
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
38
39
40
41
42
43
44
|
# Maintainer: DuckSoft <realducksoft at gmail dot com>
# Contributor: ArielAxionL <i at axionl dot me>
# Contributor: Leroy.H.Y <me at lhy0403 dot top>
# Contributor: Neboer <rubinposter at gmail dot com>
pkgname=qv2ray
pkgver=2.0.1
pkgrel=1
pkgdesc="Cross-platform V2ray Client written in Qt (Stable Release)"
arch=('x86_64')
url='https://github.com/Qv2ray/Qv2ray'
license=('GPL3')
depends=('hicolor-icon-theme' 'qt5-charts>5.11.0' 'grpc>=1.27.0')
optdepends=('v2ray' 'v2ray-domain-list-community' 'v2ray-geoip')
makedepends=('git' 'make' 'qt5-tools' 'which' 'gcc' 'qt5-declarative' 'grpc-cli>=1.27.0')
provides=('qv2ray')
source=("Qv2ray-${pkgver}::git+${url}#tag=v${pkgver}")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/Qv2ray-${pkgver}"
printf "%s" $(git describe --long --tags | sed 's/v//;s/-\S*//g')
}
prepare() {
cd "${srcdir}/Qv2ray-${pkgver}"
git submodule init
git config submodule."libs/libqvb".active false
git config submodule."libs/gRPC-win32".active false
git submodule update
}
build() {
cd "${srcdir}/Qv2ray-${pkgver}"
mkdir -p build && cd build
qmake 'CONFIG += use_grpc' 'DEFINES += QV2RAY_DEFAULT_VCORE_PATH=\\\"/usr/bin/v2ray\\\"' 'DEFINES += QV2RAY_DEFAULT_VASSETS_PATH=\\\"/usr/lib/v2ray\\\"' PREFIX=/usr ../
make
}
package() {
cd "${srcdir}/Qv2ray-${pkgver}"
install -Dm755 build/qv2ray "${pkgdir}/usr/bin/qv2ray"
install -Dm644 assets/qv2ray.desktop "${pkgdir}/usr/share/applications/qv2ray.desktop"
install -Dm644 assets/icons/qv2ray.png "${pkgdir}/usr/share/icons/hicolor/256x256/apps/qv2ray.png"
}
|