summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD23
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..eaca9408b88
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python-godirect
+ pkgdesc = Library to interface with GoDirect devices via USB and BLE
+ pkgver = 1.1.2
+ pkgrel = 1
+ url = https://pypi.org/project/godirect
+ arch = any
+ license = GPL
+ makedepends = python-setuptools
+ depends = python-hidapi
+ depends = python-bleak
+ source = https://files.pythonhosted.org/packages/source/g/godirect/godirect-1.1.2.tar.gz
+ sha256sums = 6f91ab46944857fdb93e9d1444bb6f1b77b8e0d122f551f686a43573dbe9299e
+
+pkgname = python-godirect
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4b07a913ebd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Baltazár Radics <baltazar.radics@gmail.com>
+_name=godirect
+pkgname=python-$_name
+pkgver=1.1.2
+pkgrel=1
+pkgdesc='Library to interface with GoDirect devices via USB and BLE'
+arch=(any)
+url='https://pypi.org/project/godirect'
+license=(GPL)
+depends=(python-hidapi python-bleak)
+makedepends=(python-setuptools)
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('6f91ab46944857fdb93e9d1444bb6f1b77b8e0d122f551f686a43573dbe9299e')
+
+build() {
+ cd "$_name-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$_name-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}