blob: ae3121ac8bc8e8a5461850147efe74c4f2b06bbc (
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
54
55
56
|
# Maintainer: Hork <aliyuchang33@outlook.com>
# Contributer: ArielAxionL <i at axionl dot me>
# Contributor: DuckSoft <realducksoft@gmail.com>
pkgname=qv2ray-dev-git
pkgver=2.7.0.7001.r3056.6b1ee7be
pkgrel=1
pkgdesc="Cross-platform V2Ray Client written in Qt (Development 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'
'cmake' 'ninja')
provides=('qv2ray')
conflicts=('qv2ray')
source=(
'Qv2ray::git+https://github.com/Qv2ray/Qv2ray#branch=dev'
)
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/Qv2ray/"
printf "%s.%s.r%s.%s" $(cat ./makespec/VERSION) $(cat ./makespec/BUILDVERSION) $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}
prepare() {
cd "${srcdir}/Qv2ray"
git submodule update --init --recursive
}
build() {
export _QV2RAY_BUILD_INFO_="Qv2ray for Arch Linux CN"
export _QV2RAY_BUILD_EXTRA_INFO_="(Official 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
}
|