blob: c12d108a129b33f1e715ba1de96037540658f9b3 (
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
|
# Maintainer: Keeyou <hukeyue@vip.163.com>
# Contributor: Keeyou <hukeyue@vip.163.com>
pkgname=yass-proxy-qt6
pkgver=1.24.3
pkgrel=1
_pkgver=1.24.3
_pkgrel=1
pkgdesc="lightweight http/socks proxy"
arch=(x86_64 aarch64)
url="https://github.com/hukeyue/yass"
license=(GPL-2.0-only)
depends=(gcc-libs glibc qt6-base zlib libnghttp2 c-ares gperftools jsoncpp mbedtls)
optdepends=(qt6-wayland)
makedepends=(gcc binutils git ninja perl pkg-config cmake qt6-tools curl go)
checkdepends=(curl)
provides=(yass-proxy)
conflicts=(yass-proxy-git)
source=("https://github.com/hukeyue/yass/releases/download/${_pkgver}/yass-${_pkgver}.tar.zst"
)
sha256sums=('c7289c9074aa8e65dc1f40d96c8f3fd09da8affa21ee17cba030f6dbdff6c0e0')
build(){
SRC_DIR="${srcdir}/yass-${_pkgver}"
pushd $SRC_DIR
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja -DBUILD_TESTS=on \
-DUSE_TCMALLOC=on -DUSE_SYSTEM_TCMALLOC=on \
-DUSE_ZLIB=on -DUSE_CARES=on \
-DUSE_SYSTEM_ZLIB=on -DUSE_SYSTEM_CARES=on -DUSE_SYSTEM_NGHTTP2=on \
-DUSE_JSONCPP=on -DUSE_SYSTEM_JSONCPP=on \
-DUSE_MBEDTLS=on -DUSE_SYSTEM_MBEDTLS=on \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_LIBEXECDIR=libexec \
-DUSE_DEBUG_FISSION=off -DUSE_COMPRESS_DEBUG_SECTIONS=off \
-DBUILD_SHARED_LIBS=on \
-USE_CET=on \
-DGUI=ON -DUSE_QT6=on -DCLI=off -DSERVER=off
ninja yass yass_test
cd ..
popd
}
check() {
SRC_DIR="${srcdir}/yass-${_pkgver}"
pushd $SRC_DIR
./build/yass_test
popd
}
package(){
SRC_DIR="${srcdir}/yass-${_pkgver}"
pushd $SRC_DIR
install -Dm644 ./build/LICENSE ${pkgdir}/usr/share/licenses/yass/LICENSE
DESTDIR=${pkgdir} ninja -C build install
rm -rf ${pkgdir}/usr/share/doc
popd
}
|