blob: c3237e6dba70c705b4ed1686f52df69532099854 (
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
|
# Maintainer: Albert Sebastian <albertsebe2 at gmail dot com>
pkgname=wstunnel
pkgver=10.1.11
pkgrel=1
pkgdesc="Tunnel all your traffic over websocket protocol - Bypass firewalls/DPI"
arch=('x86_64' 'i686' 'aarch64' 'armv7h')
options=('!lto')
url="https://github.com/erebe/wstunnel"
license=('BSD-3-Clause')
provides=('wstunnel')
conflicts=('wstunnel-bin' 'nodejs-wstunnel' 'haskell-wstunnel-bin')
depends=('glibc' 'gcc-libs')
makedepends=('rust' 'git')
source=("https://github.com/erebe/wstunnel/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('a560268d5aa1f8dac9c158798828c495c4d266ce5953891494868d4647e36cac')
prepare() {
cd $pkgname-$pkgver
RUSTUP_TOOLCHAIN=stable \
cargo fetch \
--locked \
--target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd $pkgname-$pkgver
CARGO_TARET_DIR=target \
RUSTUP_TOOLCHAIN=stable \
cargo build \
-p $pkgname-cli \
--frozen \
--release
}
package() {
cd $pkgname-$pkgver
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|