diff options
author | txtsd | 2024-03-20 17:14:16 +0530 |
---|---|---|
committer | txtsd | 2024-03-20 17:14:16 +0530 |
commit | c9b83a2c48a0b2461210f90cd04fed9b8f1e16fd (patch) | |
tree | e7223c41c87325e107e480ff75f6b482581fd1df | |
download | aur-c9b83a2c48a0b2461210f90cd04fed9b8f1e16fd.tar.gz |
upgpkg: dpitunnel 0.9.0-1
Signed-off-by: txtsd <code@ihavea.quest>
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 37 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7bdde46e5d90 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = dpitunnel + pkgdesc = Free, simple and serverless solution against censorship for Linux PCs and routers + pkgver = 0.9.0 + pkgrel = 1 + url = https://github.com/txtsd/DPITunnel + arch = x86_64 + license = GPL-3.0-or-later + makedepends = cpp-httplib + depends = libnl + depends = gcc-libs + depends = zlib + depends = openssl + depends = glibc + depends = brotli + source = dpitunnel-0.9.0.zip::https://github.com/txtsd/DPITunnel/archive/refs/tags/0.9.0.tar.gz + source = cpp-httplib-0.15.3.tar.gz::https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.15.3.tar.gz + sha256sums = 4f8d1acfa0fe1262fbc66a00ebcd82724fa28003417664bc9230642067ece36e + sha256sums = 2121bbf38871bb2aafb5f7f2b9b94705366170909f434428352187cb0216124e + +pkgname = dpitunnel diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f9f94123be37 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ + +*.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..61370fe47252 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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}" +} |