2022-04-27 02:10:43 +00:00
|
|
|
# Contributor: psykose <alice@ayaya.dev>
|
|
|
|
# Maintainer: psykose <alice@ayaya.dev>
|
|
|
|
pkgname=wireguard-vanity-address
|
2022-04-27 03:57:56 +00:00
|
|
|
pkgver=0.4.0_git20200327
|
|
|
|
_gitrev=d36eeac325ba3f27111ef4b17d171e695ff75552
|
|
|
|
pkgrel=2
|
2022-04-27 02:10:43 +00:00
|
|
|
pkgdesc="generate Wireguard keypairs with a given prefix string"
|
|
|
|
url="https://github.com/warner/wireguard-vanity-address"
|
|
|
|
arch="all"
|
|
|
|
license="MIT"
|
|
|
|
makedepends="cargo"
|
2022-04-27 03:57:56 +00:00
|
|
|
source="https://github.com/warner/wireguard-vanity-address/archive/$_gitrev/wireguard-vanity-address-$_gitrev.tar.gz
|
|
|
|
0001-add-curve25519-dalek-dependency.patch
|
|
|
|
0002-new-search-algorithm-point-addition-not-scalarmult.patch
|
|
|
|
0003-update-benchmarks-to-new-scheme.patch
|
|
|
|
0004-lowercase-lol.patch
|
|
|
|
0005-sync-deps.patch
|
2022-04-27 03:12:07 +00:00
|
|
|
"
|
2022-04-27 03:57:56 +00:00
|
|
|
builddir="$srcdir/$pkgname-$_gitrev"
|
2022-04-27 03:13:13 +00:00
|
|
|
options="!check" # no tests
|
2022-04-27 02:10:43 +00:00
|
|
|
|
|
|
|
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="
|
2022-04-27 03:57:56 +00:00
|
|
|
60b9e79517ab221fe597b3bf2cb8a01498758768aa9bd0855c7e1b31dde7399bc004c71f4cfd0a2cd87a0542e4012aa16e5539561b1d46534b806d6940cdedb0 wireguard-vanity-address-d36eeac325ba3f27111ef4b17d171e695ff75552.tar.gz
|
|
|
|
79397a36ecd446fbbe1be4138f841289057be257cafca41f453223fa01991cc23fcc0c835a870da6f0a72ffb3e0e00901a9d941b85133f7ba3bc1a071d78ce7d 0001-add-curve25519-dalek-dependency.patch
|
|
|
|
a00d7241819bda4adb0c2233f26908798a7087171a975dcc442e7b090a3d038564bf3ec9629312f5e9d1cf5285e0a43a10076d480cb8975232ded9d619b5dbce 0002-new-search-algorithm-point-addition-not-scalarmult.patch
|
|
|
|
d81318fa5810223601d72923bc251bea08c13b850add03483cd09910eadbd2a89c0cdf48eef6e4c68c41d8ab2e3d8ad22ca6e695ed54f08cf63eccc2d5ee64d4 0003-update-benchmarks-to-new-scheme.patch
|
|
|
|
359f7ff6a90882aea8f4fc08f9e4d13c73b1e1ee927dfa5d0ffd4189c9b365887ca4582082b94036582a04037ea92dd36d12886001f224428b262d462427af75 0004-lowercase-lol.patch
|
|
|
|
de0629aa7fb5bee82ef1da4fe0e7e6f2eaa8bb932f793cb72199531c09fdc5536d7bc5a16fe1210b7e1e03206dd51176621cdb1e27866c7afe59b8b05eb68651 0005-sync-deps.patch
|
2022-04-27 02:10:43 +00:00
|
|
|
"
|