void-packages/srcpkgs/hashcat/template
2017-06-13 17:13:33 +02:00

29 lines
814 B
Bash

# Template file for 'hashcat'
pkgname=hashcat
reverts="3.10_1 3.20_1 3.30_1 3.40_1"
version=3.6.0
revision=1
build_style=gnu-makefile
make_build_args="LFLAGS=$LDFLAGS PREFIX=/usr"
makedepends="gmp-devel opencl2-headers"
short_desc="Advanced CPU-based password recovery utility"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="MIT"
homepage="https://hashcat.net/hashcat/"
distfiles="https://github.com/hashcat/hashcat/archive/v${version}.tar.gz"
checksum=f85b13d7563382690775bc8b1800190cbe133770ba8354ccbcf31f6a12e73bf0
CFLAGS="-W -Wall -std=c99 -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/"
pre_build() {
sed -i \
-e 's|-ldl|-ldl $(LDFLAGS)|g' \
-e 's| -s$||g' \
-e '/-march=native/d' \
src/Makefile
}
post_install() {
rm -f ${DESTDIR}/usr/share/docs/hashcat/license.txt
vlicense docs/license.txt
}