Date: Saturday, April 8, 2023 @ 07:15:36
Author: felixonmars
Revision: 1442091
archrelease: copy trunk to community-staging-any
Added:
python-pyadi-iio/repos/community-staging-any/
python-pyadi-iio/repos/community-staging-any/PKGBUILD
(from rev 1442088, python-pyadi-iio/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-pyadi-iio/repos/community-staging-any/PKGBUILD (from rev
1442088, python-pyadi-iio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 07:15:36 UTC (rev 1442091)
@@ -0,0 +1,50 @@
+# Maintainer: Filipe LaĆns (FFY00) <[email protected]>
+
+_pkgname=pyadi-iio
+pkgname=python-$_pkgname
+pkgver=0.0.13
+pkgrel=2
+pkgdesc='Python interfaces for ADI hardware with IIO drivers'
+arch=('any')
+url='https://github.com/analogdevicesinc/pyadi-iio'
+license=('custom')
+depends=('python-pylibiio' 'python-numpy' 'python-paramiko')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
+# 'python-sphinx' 'python-sphinx_rtd_theme' 'python-myst-parser')
+checkdepends=('python-pytest' 'python-scapy')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('fed3cf90085fc56183e4bfdf69acc1b4231dced6e91c504ae66438730087d5ae8984117aa8337a3d9f3fa6fe5c81dbf11ba1a825697dd8692432901dd4cf5b20')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python -m build -nw
+
+# cd doc
+#
+# make html
+}
+
+# need liblibc.a
+#check() {
+# cd $_pkgname-$pkgver
+#
+# python -m pytest
+#}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python -m installer -d "$pkgdir" dist/*.whl
+
+ # Remove tests
+ rm -rf "$pkgdir"/usr/lib/python*/site-packages/test
+
+ # Install documentation
+# install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+# cp -r -a --no-preserve=ownership doc/build/html
"$pkgdir"/usr/share/doc/$pkgname
+#
+# install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et: