blob: 41de2603ddc2ccbf50e05d5bb9cc1c528c9df26d (
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
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
pkgname=dpitunnel-git
_pkgname="${pkgname%-git}"
__pkgname=DPITunnel
pkgver=1.0.3.r2.gaa098e8
pkgrel=1
pkgdesc='Free, simple and serverless solution against censorship for Linux PCs and routers'
arch=(x86_64 i686 armv7h aarch64)
url='https://github.com/txtsd/DPITunnel'
license=('GPL-3.0-or-later')
depends=(
brotli
ca-certificates-utils
gcc-libs
glibc
libnl
openssl
zlib
)
makedepends=(
cmake
cpp-httplib
git
)
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "${__pkgname}"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${__pkgname}"
cmake -S . -B build \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
cmake --build build
}
check() {
cd "${__pkgname}"
ctest --test-dir build --output-on-failure
}
package() {
cd "${__pkgname}"
install -Dm755 "build/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
}
|