From 510264c15568dccff5abc8bbfbc896a00a1f35b7 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 10 Jan 2024 11:10:50 +0100 Subject: [PATCH] testing/py3-apicula: new aport https://github.com/YosysHQ/apicula Project Apicula: bitstream documentation for Gowin FPGAs --- testing/py3-apicula/APKBUILD | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 testing/py3-apicula/APKBUILD diff --git a/testing/py3-apicula/APKBUILD b/testing/py3-apicula/APKBUILD new file mode 100644 index 00000000000..93f714d791a --- /dev/null +++ b/testing/py3-apicula/APKBUILD @@ -0,0 +1,47 @@ +# Maintainer: Marian Buschsieweke +pkgname=py3-apicula +_pkgname=Apycula +pkgver=0.10.0 +pkgrel=0 +pkgdesc="Project Apicula: bitstream documentation for Gowin FPGAs" +url="https://github.com/YosysHQ/apicula" +arch="noarch" +license="MIT" +depends=" + py3-crcmod + py3-numpy + py3-openpyxl + py3-pandas + py3-pillow + python3 + " +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + " +subpackages="$pkgname-pyc" +# Note: The GitHub repo contains only the source of the tools used to extract +# the bitstream info from the binary only Gowin tools via fuzzing. The +# source package form pypi also contains the extracted databases. Since +# the fuzzing takes ages and only works on x86_64 glibc systems (the +# binary only Gowin tools are built for that), we really want to use +# the pypi source. +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" +options="!check" # no unit tests provided + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +94f0d3c41ff284a8bdb7915ef2d28371c2e79deab331d62347882ee4e8fd662569099ef599ea38e9e85b5d647971e2132828dffb176b0c95236b4d26065354b7 Apycula-0.10.0.tar.gz +"