From cb4ee573d4b12677ea1648b97d26de07160e9522 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Sun, 2 Jul 2023 12:38:49 +0200 Subject: [PATCH] added: ares (#3891) * added: ares * added: ares * Update PKGBUILD --------- Co-authored-by: winetrix --- packages/ares/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 packages/ares/PKGBUILD diff --git a/packages/ares/PKGBUILD b/packages/ares/PKGBUILD new file mode 100644 index 00000000000..62d666553a5 --- /dev/null +++ b/packages/ares/PKGBUILD @@ -0,0 +1,37 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=ares +pkgver=v0.10.0.r34.g8197b54 +pkgrel=1 +pkgdesc='Automated decoding of encrypted text without knowing the key or ciphers used.' +arch=('x86_64' 'aarch64') +groups=('blackarch' 'blackarch-cracker' 'blackarch-crypto') +url='https://github.com/bee-san/Ares' +license=('MIT') +depends=() +makedepends=('git' 'cargo') +source=("git+https://github.com/bee-san/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd $pkgname + + cargo build --release --locked +} + +package() { + cd $pkgname + + install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" + + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} +