From 5c296b2561fbf7cbc8991892a7572d0b049ee7a6 Mon Sep 17 00:00:00 2001 From: Xiufeng Guo Date: Thu, 30 Jun 2022 19:00:31 +0000 Subject: [PATCH] Add vanity_gpg --- README.md | 10 +++++----- repo/vanity_gpg/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 repo/vanity_gpg/PKGBUILD diff --git a/README.md b/README.md index e4283d2..f91c292 100644 --- a/README.md +++ b/README.md @@ -69,11 +69,11 @@ I mainly maintain some out-of-date packages from AUR or binaries built on my own Here is the list: -| Name | AUR PKGBUILD | My PKGBUILD | -| ------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| synergy1-bin | https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=synergy1-bin | https://git.m.ac/showfom/archlinux/src/branch/main/repo/synergy1-bin/PKGBUILD | -| nali-go-bin | https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nali-go-bin | https://git.m.ac/showfom/archlinux/src/branch/main/repo/nali-go-bin/PKGBUILD | -| To Be Continued... | | | +| Name | AUR PKGBUILD | My PKGBUILD | Source | +| ------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------- | +| synergy1-bin | https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=synergy1-bin | https://git.m.ac/showfom/archlinux/src/branch/main/repo/synergy1-bin/PKGBUILD | [GitHub](https://github.com/symless/synergy-core) | +| nali-go-bin | https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nali-go-bin | https://git.m.ac/showfom/archlinux/src/branch/main/repo/nali-go-bin/PKGBUILD | [GitHub](https://github.com/zu1k/nali) | +| vanity_gpg | https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vanity_gpg | https://git.m.ac/showfom/archlinux/src/branch/main/repo/vanity_gpg/PKGBUILD | [GitHub](https://github.com/RedL0tus/VanityGPG) | ## License diff --git a/repo/vanity_gpg/PKGBUILD b/repo/vanity_gpg/PKGBUILD new file mode 100644 index 0000000..be031f3 --- /dev/null +++ b/repo/vanity_gpg/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: ml +# Maintainer: Xiufeng Guo +pkgname=vanity_gpg +pkgver=0.3.2 +pkgrel=1 +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" +}