wireguard-vanity-address: new ptrcport
This commit is contained in:
parent
2c383770e8
commit
f297f9bac8
1 changed files with 39 additions and 0 deletions
39
wireguard-vanity-address/APKBUILD
Normal file
39
wireguard-vanity-address/APKBUILD
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Contributor: psykose <alice@ayaya.dev>
|
||||
# Maintainer: psykose <alice@ayaya.dev>
|
||||
pkgname=wireguard-vanity-address
|
||||
pkgver=0.4.0
|
||||
pkgrel=0
|
||||
pkgdesc="generate Wireguard keypairs with a given prefix string"
|
||||
url="https://github.com/warner/wireguard-vanity-address"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
makedepends="cargo"
|
||||
source="https://github.com/warner/wireguard-vanity-address/archive/refs/tags/v$pkgver/wireguard-vanity-address-v$pkgver.tar.gz"
|
||||
|
||||
export CARGO_HOME="$srcdir"
|
||||
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
|
||||
export CARGO_PROFILE_RELEASE_LTO="true"
|
||||
export CARGO_PROFILE_RELEASE_OPT_LEVEL="s"
|
||||
export CARGO_PROFILE_RELEASE_PANIC="abort"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cargo fetch --locked
|
||||
}
|
||||
|
||||
build() {
|
||||
cargo build --release --frozen
|
||||
}
|
||||
|
||||
check() {
|
||||
cargo test --frozen
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 target/release/wireguard-vanity-address \
|
||||
-t "$pkgdir"/usr/bin
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7be6823b01dc7741018f6e98a3a91ad84f290d586d4418c9f65f5966141c89bd5e5bd80e856286d6c7ff2f756ca20342169d4b57016ac90882a5c9f74643a11e wireguard-vanity-address-v0.4.0.tar.gz
|
||||
"
|
Loading…
Reference in a new issue