void-packages/srcpkgs/hashcat/template

30 lines
782 B
Bash
Raw Normal View History

2015-12-06 16:04:38 +00:00
# Template file for 'hashcat'
pkgname=hashcat
2016-12-06 17:06:23 +00:00
version=3.20
2015-12-06 16:04:38 +00:00
revision=1
2016-07-01 16:58:49 +00:00
build_style=gnu-makefile
make_build_target="native"
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"
2016-12-06 17:06:23 +00:00
checksum=7efb93073a79a80d7fe6a26740c6e099d456f6a06abff842eb0fb617618586cc
2015-12-06 16:04:38 +00:00
2016-07-01 16:58:49 +00:00
CFLAGS="-W -Wall -std=c99 -Iinclude/ -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
}