Add vanity_gpg

This commit is contained in:
Xiufeng Guo 2022-06-30 19:00:31 +00:00
parent b614765cce
commit 5c296b2561
Signed by: showfom
GPG Key ID: 29A7777777777777
2 changed files with 37 additions and 5 deletions

View File

@ -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

32
repo/vanity_gpg/PKGBUILD Normal file
View File

@ -0,0 +1,32 @@
# Maintainer: ml <ml@visu.li>
# Maintainer: Xiufeng Guo <i@m.ac>
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"
}