Package Details: udp-over-tcp 0.4.0-3

Git Clone URL: https://aur.archlinux.org/udp-over-tcp.git (read-only, click to copy)
Package Base: udp-over-tcp
Description: Proxy UDP traffic over a TCP stream
Upstream URL: https://github.com/mullvad/udp-over-tcp
Licenses: Apache-2.0 OR MIT
Submitter: cdown
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 2
Popularity: 0.025169
First Submitted: 2022-05-04 23:55 (UTC)
Last Updated: 2024-04-02 06:33 (UTC)

Latest Comments

HurricanePootis commented on 2023-11-08 19:39 (UTC)

Hello, this package is not compliant with Rust packaging guidlines. I have attached a patch file to fix this. You are missing a build() function, prepare() function, and you did not list any dependencies. Using namcap, this project requires glibc and gcc-libs. I have attached a patch file to fix this PKGBUILD.

diff --git a/PKGBUILD b/PKGBUILD
index 60c1b2b..ceccc58 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,38 @@
 # Maintainer: Chris Down <chris@chrisdown.name>

 pkgname=udp-over-tcp
-pkgver=0.2.0
-pkgrel=2
+pkgver=0.3.1
+pkgrel=1
 pkgdesc="Proxy UDP traffic over a TCP stream"
 arch=('i686' 'x86_64')
 url="https://github.com/mullvad/udp-over-tcp"
 license=('apache' 'MIT')
-depends=()
+depends=('glibc' 'gcc-libs')
 makedepends=('git' 'rust')
 source=("https://github.com/mullvad/udp-over-tcp/archive/refs/tags/v$pkgver.tar.gz")
-sha256sums=('2879d579533154b7825b59c22bb9287a99cc017e0377fe2526313822eebd1ba6')
+sha256sums=('b65baf92c9d41401bc73a77510030bc54cd2661a8020a870f2c48ac804eb64cf')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  RUSTUP_TOOLCHAIN=stable \
+  cargo fetch \
+  --locked \
+  --target "$CARCH-unknown-linux-gnu"
+
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  CARGO_TARET_DIR=target \
+  RUSTUP_TOOLCHAIN=stable \
+  cargo \
+  build \
+  --frozen \
+  --release \
+  --all-features
+
+}

 package() {
   cd "$srcdir"/udp-over-tcp-"$pkgver"