summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoracxz2020-04-18 22:25:34 -0400
committeracxz2020-04-18 22:25:34 -0400
commitaf4ab81b4ccc8e0906a40ba484952c8baea649ce (patch)
tree3ef45ceb789d1825769e50581d71af850c267b39
downloadaur-af4ab81b4ccc8e0906a40ba484952c8baea649ce.tar.gz
create python-pymavlink package
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD25
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..178f4781310
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = python-pymavlink
+ pkgdesc = python MAVLink interface and utilities
+ pkgver = 2.4.7
+ pkgrel = 1
+ url = https://github.com/ArduPilot/pymavlink/
+ arch = any
+ license = LGPL v3
+ makedepends = python
+ makedepends = python-setuptools
+ depends = python
+ depends = python-future
+ depends = python-lxml
+ source = python-pymavlink-2.4.7::https://pypi.org/packages/source/p/pymavlink/pymavlink-2.4.7.tar.gz
+ sha256sums = cb811f1aba9d1d3cc15f518dd4a4577653a2caa70e89e0f44ac0784414d309b2
+
+pkgname = python-pymavlink
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7c40d56d9cd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: acxz <akashpatel2008 at yahoo dot com>
+
+pkgname=python-pymavlink
+pkgver=2.4.7
+pkgrel=1
+pkgdesc='python MAVLink interface and utilities'
+arch=('any')
+url='https://github.com/ArduPilot/pymavlink/'
+license=('LGPL v3')
+depends=(python python-future python-lxml)
+makedepends=(python python-setuptools)
+source=("$pkgname-$pkgver::https://pypi.org/packages/source/p/pymavlink/pymavlink-${pkgver}.tar.gz")
+sha256sums=('cb811f1aba9d1d3cc15f518dd4a4577653a2caa70e89e0f44ac0784414d309b2')
+
+_pkgname=pymavlink
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="$pkgdir" --optimize=1
+}