blob: 61370fe47252632b30a63cef7fd935d523cb7188 (
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
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
pkgname=dpitunnel
__pkgname=DPITunnel
pkgver=0.9.0
pkgrel=1
pkgdesc="Free, simple and serverless solution against censorship for Linux PCs and routers"
arch=('x86_64')
url="https://github.com/txtsd/DPITunnel"
license=('GPL-3.0-or-later')
depends=('libnl' 'gcc-libs' 'zlib' 'openssl' 'glibc' 'brotli')
makedepends=('cpp-httplib')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("${pkgname}-${pkgver}.zip::${url}/archive/refs/tags/${pkgver}.tar.gz"
"cpp-httplib-0.15.3.tar.gz::https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.15.3.tar.gz")
sha256sums=('4f8d1acfa0fe1262fbc66a00ebcd82724fa28003417664bc9230642067ece36e'
'2121bbf38871bb2aafb5f7f2b9b94705366170909f434428352187cb0216124e')
prepare() {
cd "${__pkgname}-${pkgver}"
cp -r "${srcdir}/cpp-httplib-0.15.3" "${srcdir}/${__pkgname}-${pkgver}"
rm -rf cpp-httplib
mv "cpp-httplib-0.15.3" "cpp-httplib"
}
build() {
cd "${__pkgname}-${pkgver}"
cmake -B build .
cmake --build build
}
package() {
cd "${__pkgname}-${pkgver}"
install -Dm755 "build/${__pkgname}-exec" "${pkgdir}/usr/bin/${pkgname}"
}
|