community/afl to 2.53b-1

This commit is contained in:
Kevin Mihelich 2019-08-12 12:52:46 +00:00
parent 079a3ed575
commit 3c37da7e94

View file

@ -6,8 +6,8 @@
# - strip -fno-plt from v5 CFLAGS (old LLVM)
pkgname=afl
pkgver=2.52b
pkgrel=2
pkgver=2.53b
pkgrel=1
pkgdesc='Security-oriented fuzzer using compile-time instrumentation and genetic algorithms'
url='http://lcamtuf.coredump.cx/afl/'
arch=('x86_64')
@ -21,19 +21,19 @@ 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')
source=(https://github.com/google/AFL/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('ea4917c0c982f45866d6fbf129a78eb9959736bd69bb269cab57f2695661e6e6')
sha512sums=('709fba16eda4b0175273ac24e2fcb0fa469d203b666c87a367a3bd76e3acea1f67642b8f492065b5b5b04c0224a47aa121e7b056a1b39de8cf8979f9367cd051')
build() {
cd ${pkgname}-${pkgver}
cd AFL-${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}
cd AFL-${pkgver}
make PREFIX=/usr AFL_NO_X86=1 DESTDIR="${pkgdir}" install
install -Dm 644 llvm_mode/README.llvm -t "${pkgdir}/usr/share/doc/${pkgname}"
}