blob: 0ca9eff7a83e7cbaf52e31c12f76e960b16fa0e3 (
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
48
49
50
51
|
# Maintainer: Sven Friedrich (sven At autumnal Dot de)
pkgname=rosenpass-git
_pkgname=rosenpass
pkgver=0.2.1
pkgrel=5
pkgdesc="formally verified and post-quantum secure VPN over WireGuard"
url="https://rosenpass.eu"
_git="https://github.com/rosenpass/${_pkgname}.git"
arch=(any)
license=(MIT APACHE)
makedepends=('cargo' 'git' 'cmake' 'pkg-config' 'rust-bindgen')
depends=('libsodium' 'gawk' 'wireguard-tools' 'findutils')
provides=('rp' 'rosenpass')
conflicts=()
source=("${_pkgname}::git+${_git}")
sha256sums=('SKIP')
options=(!lto)
_bin=rosenpass
_script=rp
pkgver() {
cd "${_pkgname}"
cargo pkgid rosenpass | grep -oE "[^#]+$" | tr -d '-'
}
prepare() {
cd "${_pkgname}"
cargo fetch --locked --target $CARCH-unknown-linux-gnu
ulimit -s 8192000
export RUST_MIN_STACK=33554432000
export RUST_BACKTRACE=1
}
build() {
cd "${_pkgname}"
cargo build --release --frozen
}
check() {
cd "${_pkgname}"
cargo test --frozen
}
package() {
cd "${_pkgname}"
install -Dm 0755 "target/release/${_bin}" "${pkgdir}/usr/bin/${_bin}"
install -Dm 0755 "${_script}" "${pkgdir}/usr/bin/${_script}"
install -Dm 0644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE-MIT"
install -Dm 0644 LICENSE-APACHE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE-APACHE"
}
|