blob: 4fcdbab3c4345a2707c376a76f184d554599e0de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=afl-utils-git
_gitname=afl-utils
pkgver=1.34a.272.b01a625
pkgrel=1
pkgdesc="Utilities for automated crash sample processing/analysis, easy afl-fuzz job management and corpus optimization"
url="https://github.com/rc0r/afl-utils"
arch=('any')
license=('Apache')
depends=('afl' 'coreutils' 'python' 'rsync')
optdepends=(
'sqlite: database support'
'screen: interactive/screen mode support'
'gdb: gdb script execution support'
)
makedepends=('git' 'python-setuptools')
provides=('afl-utils')
conflicts=('afl-utils')
source=(${pkgname}::git+https://gitlab.com/rc0r/afl-utils)
sha512sums=('SKIP')
pkgver() {
cd ${pkgname}
printf "%s.%s.%s" "$(git describe --tags --abbrev=0|cut -dv -f2|cut -d- -f1)" \
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd ${pkgname}
python setup.py install -O1 --root="${pkgdir}"
rm -rf "${pkgdir}"/usr/lib/python*/site-packages/tests
install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm 644 docs/CHANGELOG.md "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG.md"
install -Dm 644 config/* -t "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim: ts=2 sw=2 et:
|