summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91aa5df6459206dc3f9ff0f832d9b12ab7be841c (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
39
40
41
42
43
# Maintainer: George Rawlinson <grawlinson@archlinux.org>

pkgname=python-atheris
pkgver=2.0.12
pkgrel=1
pkgdesc='A coverage-guided fuzzer for Python and Python extensions'
arch=('x86_64')
url='https://github.com/google/atheris/'
license=('Apache')
depends=('python')
makedepends=(
  'git'
  'clang'
  'python-build'
  'python-installer'
  'python-wheel'
  'python-setuptools'
  'pybind11'
)
_commit='cbd372db6a61577566b967587b12fd934b937f2d'
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')

pkgver() {
  cd "$pkgname"

  # https://github.com/google/atheris/issues/45
  git describe --tags | sed 's/^v//'

  #grep ATHERIS_VERSION setup.py | sed -e 's/.*ATHERIS_VERSION", "\(.*\)")/\1/'
}

build() {
  cd "$pkgname"

  python -m build --wheel --no-isolation
}

package() {
  cd "$pkgname"

  python -m installer --destdir="$pkgdir" dist/*.whl
}