45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Template file for 'hashcat'
|
|
pkgname=hashcat
|
|
version=6.2.3
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="
|
|
PREFIX=/usr
|
|
ENABLE_UNRAR=$(vopt_if unrar 1 0)
|
|
USE_SYSTEM_OPENCL=1
|
|
USE_SYSTEM_XXHASH=1
|
|
USE_SYSTEM_ZLIB=1
|
|
DEPS_OPENCL_PATH=${XBPS_CROSS_BASE}/usr/include
|
|
DEPS_XXHASH_PATH=${XBPS_CROSS_BASE}/usr/include
|
|
DEPS_ZLIB_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 minizip-devel zlib-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=c0be1c6693ee1f35c7bef1f79bf9e30a954f717ef42d00e37787aaeff3271e51
|
|
|
|
build_options="unrar"
|
|
desc_option_unrar="Enable support for unrar"
|
|
|
|
# unrar option disabled by default because of license issues
|
|
build_options_default=""
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
broken="Not supported on big endian"
|
|
fi
|
|
|
|
post_extract() {
|
|
vsed '/^\(CC\|CXX\)/d' -i src/Makefile
|
|
}
|
|
|
|
post_install() {
|
|
rm -f ${DESTDIR}/usr/share/docs/hashcat/license.txt
|
|
vlicense docs/license.txt
|
|
}
|