31 lines
889 B
Bash
31 lines
889 B
Bash
# Template file for 'hashcat'
|
|
pkgname=hashcat
|
|
version=4.2.1
|
|
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/"
|
|
changelog="https://raw.githubusercontent.com/hashcat/hashcat/master/docs/changes.txt"
|
|
distfiles="https://github.com/hashcat/hashcat/archive/v${version}.tar.gz"
|
|
checksum=7dad73c3406e66756b19e15ae8bcc482a52a422e8fb905feb6db4d2eb32e5320
|
|
|
|
CFLAGS="-W -Wall -std=c99 -Iinclude/ -Ideps/lzma_sdk/ -IOpenCL/"
|
|
|
|
pre_build() {
|
|
sed -i \
|
|
-e 's|tag: \(.*\)$|\1|' \
|
|
-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
|
|
}
|