Autogenerated commit at 2024-09-27 14:24:54.886723+00:00
This commit is contained in:
53
qv2ray/PKGBUILD
Normal file
53
qv2ray/PKGBUILD
Normal file
@ -0,0 +1,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
|
||||
}
|
Reference in New Issue
Block a user