blob: 8edd72c6b93a6c1c897f49ab8b17555dc1ae40c1 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Maintainer:
# Contributor: DuckSoft <realducksoft@gmail.com>
_pkgname="across"
pkgname="$_pkgname"
pkgver=0.1.3
pkgrel=4
pkgdesc="The next GUI client for v2ray core"
url="https://github.com/ArkToria/ACross"
license=('GPL-3.0-only')
arch=('x86_64')
depends=(
'curl'
'fmt'
'grpc'
'hicolor-icon-theme'
'protobuf'
'qt6-5compat'
'qt6-base'
'qt6-declarative'
'spdlog'
'zxing-cpp'
)
makedepends=(
'clang'
'cmake'
'gcc'
'git'
'gtest'
'ninja'
'nlohmann-json'
'qt6-tools'
)
optdepends=(
'v2ray: use system v2ray core.'
'noto-fonts: default display fonts'
)
_pkgsrc="ACross-$pkgver"
_pkgext="tar.gz"
source=("$_pkgname-$pkgver.$_pkgext"::"$url/archive/refs/tags/v$pkgver.$_pkgext")
sha256sums=('5010a2473a4e25f4fcd329ca6ff54912157744f53a3b890fcd6f80c177172b32')
prepare() {
local _ver_zxing="2.2.1"
sed -E \
-e '/zxing-cpp/{n;s&^(\s*VERSION) [0-9\.]+$&\1 '"${_ver_zxing}"'&}' \
-i "$_pkgsrc/CMakeLists.txt"
sed -E \
-e '/always_print_primitive_fields/s&\balways_print_primitive_fields\b&always_print_fields_with_no_presence&' \
-i "$_pkgsrc/src/models/serializetools.cpp"
}
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX='/usr'
-DBUILD_INFO="Arch Linux - $pkgver"
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|