summaryrefslogtreecommitdiff
path: root/opt/hashcat/MAKEPKG
blob: 62a09209c64ef65cdc7a4d70f43368a6825b3fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/mkpkg
# description: World's fastest password recovery utility
# url: https://hashcat.net/hashcat/
name=hashcat
version=7.1.2
release=3
depends=(rocm-hipamd rocm-rocminfo ocl-icd xxhash zlib)
makedeps=(make opencl-headers)
source=(https://github.com/hashcat/hashcat/archive/refs/tags/v$version.tar.gz)
renames=(hashcat-$version.tar.gz)
sha256sums=(
    "9546a6326d747530b44fcc079babad40304a87f32d3c9080016d58b39cfc8b96"
)

build() {
    cd hashcat-$version
    make \
        PREFIX=/usr \
        SHARED=1 \
        CC=clang \
        CXX=clang++ \
        USE_SYSTEM_OPENCL=1
    make \
        DESTDIR=$PKG \
        PREFIX=/usr \
        SHARED=1 \
        CC=clang \
        CXX=clang++ \
        USE_SYSTEM_OPENCL=1 \
        install
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh