blob: e1b92ff21edd292bbb8aa1182ecee77ea68bb7a5 (
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
|
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
# Contributor: Chris Down <chris@chrisdown.name>
pkgname=udp-over-tcp
pkgver=0.4.0
pkgrel=4
pkgdesc="Proxy UDP traffic over a TCP stream"
arch=('i686' 'x86_64')
url="https://github.com/mullvad/udp-over-tcp"
license=('Apache-2.0 OR MIT')
depends=('glibc' 'gcc-libs')
makedepends=('cargo')
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('0338b65bd979ec6ccd50e6d7642fc371bed9ea2c173a54cdd98af1ca3b25f2d0')
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"
RUSTUP_TOOLCHAIN=stable cargo install \
--all-features \
--no-track \
--locked \
--root "$pkgdir/usr" \
--path .
}
|