void-packages/srcpkgs/afl/template

27 lines
766 B
Bash

# Template file for 'afl'
pkgname=afl
version=2.55b
revision=1
wrksrc="AFL-${version}"
build_style=gnu-makefile
# x86 only currently
archs="i686* x86_64*"
hostmakedepends="llvm clang"
short_desc="American fuzzy lop - a brute-force fuzzer"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/google/AFL/"
distfiles="https://github.com/google/AFL/archive/v${version}.tar.gz"
checksum=ca96fa6fac76f1ee104762cc9313be37a398f936f2b0e8a9f66e94244ae6babc
nostrip_files="small_archive.a small_exec.elf"
do_build() {
make PREFIX=/usr
CFLAGS="${CFLAGS//-fstack-clash-protection} -fPIC" \
CXXFLAGS="${CXXFLAGS//-fstack-clash-protection} -fPIC" \
LDFLAGS="${LDFLAGS} -pie" \
make PREFIX=/usr CC=clang CXX=clang++ -C llvm_mode
}