summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoracxz2020-03-20 02:54:18 -0400
committeracxz2020-03-20 02:54:18 -0400
commitbd783a367ffadf60a0814f84923dacaf6740982c (patch)
treea4e608a04a9318fde2136463e696d656714ec7d5
downloadaur-bd783a367ffadf60a0814f84923dacaf6740982c.tar.gz
create python-pyuavcan package
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD27
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ef1e3f57800
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = python-pyuavcan
+ pkgdesc = Python implementation of the UAVCAN protocol stack.
+ pkgver = 0.9.0
+ pkgrel = 1
+ url = https://pyuavcan.readthedocs.io
+ arch = x86_64
+ license = MIT
+ makedepends = python
+ makedepends = python-setuptools
+ depends = python
+ depends = python-pydsdl
+ depends = python-numpy
+ depends = python-nunavut
+ optdepends = python-can
+ optdepends = python-pyserial
+ optdepends = python-ruamel-yaml
+ optdepends = python-requests
+ optdepends = python-simplejson
+ source = python-pyuavcan-0.9.0::https://github.com/UAVCAN/pyuavcan/archive/0.9.0.tar.gz
+ sha256sums = 55ab8ff71d5a5a5e26a8d5e2a83c309e08d1c36eefb784e8076427cc94dafdfc
+
+pkgname = python-pyuavcan
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e235f259339
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: acxz <akashpatel2008 at yahoo dot com>
+
+pkgname=python-pyuavcan
+pkgver=0.9.0
+pkgrel=1
+pkgdesc='Python implementation of the UAVCAN protocol stack.'
+arch=('x86_64')
+url='https://pyuavcan.readthedocs.io'
+license=('MIT')
+depends=('python' 'python-pydsdl' 'python-numpy' 'python-nunavut')
+optdepends=('python-can' 'python-pyserial' 'python-ruamel-yaml'
+ 'python-requests' 'python-simplejson')
+makedepends=('python' 'python-setuptools')
+source=("${pkgname}-${pkgver}::https://github.com/UAVCAN/pyuavcan/archive/$pkgver.tar.gz")
+sha256sums=('55ab8ff71d5a5a5e26a8d5e2a83c309e08d1c36eefb784e8076427cc94dafdfc')
+
+_pkgname=pyuavcan
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="$pkgdir"/ --optimize=1
+}