Skip to content

Commit

Permalink
add crackpkcs12
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed Dec 3, 2023
1 parent 35007a2 commit 9eee306
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions packages/crackpkcs12/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=crackpkcs12
pkgver=0.2.10.11.c7dedb1
pkgrel=1
pkgdesc='A multithreaded program to crack PKCS#12 files (p12 and pfx extensions).'
arch=('x86_64' 'aarch64')
groups=('blackarch' 'blackarch-cracker' 'blackarch-crypto')
url='https://github.com/crackpkcs12/crackpkcs12'
license=('GPL3')
depends=()
makedepends=('git')
source=("git+https://github.com/$pkgname/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
cd $pkgname

tool_ver=$(grep VERSION= configure.in | cut -d = -f 2)
git_ver=$(echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD))
echo "$tool_ver.$git_ver"
}

prepare() {
cd $pkgname

./configure --prefix=/usr
}

build() {
cd $pkgname

make
}

package() {
cd $pkgname

make DESTDIR="$pkgdir" install

install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

0 comments on commit 9eee306

Please sign in to comment.