void-packages/srcpkgs/hashcat/template

35 lines
1.0 KiB
Bash

# Template file for 'hashcat'
pkgname=hashcat
version=6.0.0
revision=1
build_style=gnu-makefile
make_build_args="PREFIX=/usr
USE_SYSTEM_OPENCL=1 USE_SYSTEM_XXHASH=1
DEPS_OPENCL_PATH=${XBPS_CROSS_BASE}/usr/include
DEPS_XXHASH_PATH=${XBPS_CROSS_BASE}/usr/include
SHARED_FOLDER=/usr/lib/hashcat"
make_use_env=yes
make_install_args="$make_build_args"
makedepends="opencl2-headers xxHash-devel"
checkdepends="perl"
short_desc="Advanced CPU-based password recovery utility"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="MIT"
homepage="https://hashcat.net/hashcat/"
changelog="https://raw.githubusercontent.com/hashcat/hashcat/master/docs/changes.txt"
distfiles="https://hashcat.net/files/hashcat-${version}.tar.gz"
checksum=e8e70f2a5a608a4e224ccf847ad2b8e4d68286900296afe00eb514d8c9ec1285
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
broken="Not supported on big endian"
fi
post_extract() {
vsed '/^CC/d' -i src/Makefile
}
post_install() {
rm -f ${DESTDIR}/usr/share/docs/hashcat/license.txt
vlicense docs/license.txt
}