blob: 0a9a83db33ab18752ddf9b8349a3ac04f696c9d4 (
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
45
46
47
48
49
50
51
52
53
|
# Maintainer: Neboer <rubinposter at gmail dot com>
# Contributor: DuckSoft <realducksoft at gmail dot com>
# Contributor: ArielAxionL <i at axionl dot me>
# Contributor: Leroy.H.Y <me at lhy0403 dot top>
pkgname=qv2ray
pkgver=2.7.0
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-base>5.11.0' 'grpc>=1.27.0' 'qt5-svg')
optdepends=('v2ray: use system v2ray core.')
makedepends=('git' 'make' 'qt5-tools' 'which' 'gcc' 'qt5-declarative'
'grpc-cli>=1.27.0' 'cmake' 'ninja')
provides=('qv2ray')
conflicts=('qv2ray')
source=('Qv2ray::git+https://github.com/Qv2ray/Qv2ray')
sha512sums=('SKIP')
pkgver() {
printf "%s" $(cat ${srcdir}/Qv2ray/makespec/VERSION)
}
prepare() {
cd "${srcdir}/Qv2ray"
git submodule update --recursive --init
}
build() {
export _QV2RAY_BUILD_INFO_="Qv2ray from AUR"
export _QV2RAY_BUILD_EXTRA_INFO_="(Manual Build) $(uname -a | cut -d " " -f3,13)"
cd "${srcdir}/Qv2ray"
mkdir -p build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=${pkgdir}/usr \
-DQV2RAY_ZXING_PROVIDER="module" \
-DQV2RAY_TRANSLATION_PATH="/usr/share/qv2ray/lang" \
-DQV2RAY_DEFAULT_VASSETS_PATH="/usr/share/v2ray" \
-DQV2RAY_DEFAULT_VCORE_PATH="/usr/bin/v2ray" \
-DQV2RAY_DISABLE_AUTO_UPDATE=on \
-DCMAKE_BUILD_TYPE=Release \
-GNinja
ninja
}
package() {
cd "${srcdir}/Qv2ray"
ninja -C "build" install
}
|