# Contributor: psykose # Maintainer: psykose pkgname=wireguard-vanity-address pkgver=0.4.0 pkgrel=1 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 more-features.patch " export CARGO_HOME="$srcdir" 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 e5801d0d6ad448fec2a5db7152d9f3fe17324cb79f7d09941106b7a0c9126e1d0ebce5a3157d07f69d3a8879dde6c95232d901ccbdbc054fac1aa3ae70d6f6e8 more-features.patch "