void-packages/srcpkgs/hashcat/template

30 lines
814 B
Bash
Raw Normal View History

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