mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
41 lines
1.5 KiB
Bash
41 lines
1.5 KiB
Bash
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
# Contributor: spider-mario <spidermario@free.fr>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - make with AFL_NO_X86=1
|
|
# - strip -fno-plt from v5 CFLAGS (old LLVM)
|
|
|
|
pkgname=afl
|
|
pkgver=2.52b
|
|
pkgrel=2
|
|
pkgdesc='Security-oriented fuzzer using compile-time instrumentation and genetic algorithms'
|
|
url='http://lcamtuf.coredump.cx/afl/'
|
|
arch=('x86_64')
|
|
license=('Apache')
|
|
depends=('glibc' 'bash')
|
|
optdepends=('gcc: gcc instrumentation support'
|
|
'clang: clang instrumentation support'
|
|
'llvm: experimental clang-fast instrumentation support'
|
|
'gnuplot: graph plotting support')
|
|
makedepends=('clang' 'llvm' 'gcc' 'wget' 'python')
|
|
provides=('american-fuzzy-lop')
|
|
replaces=('american-fuzzy-lop')
|
|
options=('!emptydirs' '!strip')
|
|
source=(http://lcamtuf.coredump.cx/${pkgname}/releases/${pkgname}-${pkgver}.tgz)
|
|
sha256sums=('43614b4b91c014d39ef086c5cc84ff5f068010c264c2c05bf199df60898ce045')
|
|
sha512sums=('30d4526440cff109ef2a014278f52a04b1b33560b6ab7d7f59e1516655858ffb36dac81963d2d8f214984776742ca9a7942c27c8fb61f7eb70b5b35cd029008f')
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
[[ $CARCH == "arm" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/-fno-plt//'` && CXXFLAGS="$CFLAGS"
|
|
make PREFIX=/usr AFL_NO_X86=1
|
|
make -C llvm_mode PREFIX=/usr
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
make PREFIX=/usr AFL_NO_X86=1 DESTDIR="${pkgdir}" install
|
|
install -Dm 644 llvm_mode/README.llvm -t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|