void-packages/srcpkgs/hashcat/template
2016-08-23 12:31:23 +02:00

25 lines
732 B
Bash

# Template file for 'hashcat'
pkgname=hashcat
version=3.10
revision=1
build_style=gnu-makefile
make_build_target="native"
make_build_args="LFLAGS=$LDFLAGS"
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=3b555e5f7b35ab6a4558bc460f28d80b32f5a211bf9e08d6a1ba1bad5203e3e9
CFLAGS="-W -Wall -std=c99 -Iinclude/ -IOpenCL/"
pre_build() {
sed -i -e 's|-ldl|-ldl $(LDFLAGS)|g' -e 's| -s$||g' src/Makefile
}
post_install() {
rm -f ${DESTDIR}/usr/share/docs/hashcat/license.txt
vlicense docs/license.txt
}