diff options
author | George Rawlinson | 2022-10-11 10:00:08 +1300 |
---|---|---|
committer | George Rawlinson | 2022-10-11 10:00:08 +1300 |
commit | afd54dca8e27ead6ab50dc93373854e21b7626c2 (patch) | |
tree | 8e62dfc67217f51549f1c2271fd4c38080fbaac6 | |
download | aur-afd54dca8e27ead6ab50dc93373854e21b7626c2.tar.gz |
addpkg: python-atheris 2.0.12-1
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..76e2320b4ac4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-atheris + pkgdesc = A coverage-guided fuzzer for Python and Python extensions + pkgver = 2.0.12 + pkgrel = 1 + url = https://github.com/google/atheris/ + arch = x86_64 + license = Apache + makedepends = git + makedepends = clang + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools + makedepends = pybind11 + depends = python + source = python-atheris::git+https://github.com/google/atheris/#commit=cbd372db6a61577566b967587b12fd934b937f2d + b2sums = SKIP + +pkgname = python-atheris diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..91aa5df64592 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |