# Maintainer: ml # Maintainer: Xiufeng Guo pkgname=vanity_gpg pkgver=0.3.2 pkgrel=2 pkgdesc='Tool for generating and filtering vanity GPG keys' arch=('x86_64') url='https://github.com/RedL0tus/VanityGPG' license=('MIT') depends=('nettle' 'bzip2') makedepends=('cargo' 'clang' 'openssl') source=("$url"/archive/v"$pkgver"/"$pkgname"-"$pkgver".tar.gz) sha256sums=('3972bcf1f2b8a4685182241c3afb05aad22b8070acda08738680d71576e14b31') export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target prepare() { cd VanityGPG-"$pkgver" cargo fetch --target "$CARCH"-unknown-linux-gnu } build() { cd VanityGPG-"$pkgver" cargo build --offline --release } package() { cd VanityGPG-"$pkgver" install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname" install -Dm755 target/release/"$pkgname" "${pkgdir}/usr/bin/vanity_gpg" }