summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Maslowski2020-06-13 21:48:00 +0200
committerDaniel Maslowski2020-06-13 21:48:00 +0200
commitd05ff98261de1eb40d95274a9b13bc5de5d93be6 (patch)
treeed4f388f8e90551a9dc5fdb9b5640455de91c169
downloadaur-d05ff98261de1eb40d95274a9b13bc5de5d93be6.tar.gz
init v1.0.2
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD31
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6a4463fdd97
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = python-pslab-git
+ pkgdesc = Core library for PSlab desktop
+ pkgver = 1.0.2
+ pkgrel = 1
+ url = https://pslab.io
+ arch = any
+ license = GPL3
+ depends = python
+ depends = python-setuptools
+ depends = python-pyserial
+ depends = python-numpy
+ provides = pslab-python
+ conflicts = python-pslab
+ options = !emptydirs
+ source = git://github.com/fossasia/pslab-python.git
+ sha512sums = SKIP
+
+pkgname = python-pslab-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9aee7309a3f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Daniel Maslowski <info@orangecms.org>
+
+_pyname=pslab-python
+pkgname=python-pslab-git
+pkgver=1.0.2
+pkgrel=1
+pkgdesc="Core library for PSlab desktop"
+arch=('any')
+url="https://pslab.io"
+license=('GPL3')
+depends=(
+ 'python'
+ 'python-setuptools'
+ 'python-pyserial'
+ 'python-numpy'
+)
+provides=("$_pyname")
+conflicts=(python-pslab)
+options=(!emptydirs)
+source=(git://github.com/fossasia/$_pyname.git)
+sha512sums=('SKIP')
+
+package() {
+ cd "$srcdir/${_pyname}"
+ # strip out attempt to install udev rules
+ sed -i "s/.*cmdclass.*/)/" setup.py
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm 644 99-pslab.rules "$pkgdir/usr/lib/udev/rules.d/99-pslab.rules"
+}
+
+# vim:set ts=2 sw=2 et: