summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpyros Stathopoulos2021-03-28 13:28:54 +0100
committerSpyros Stathopoulos2021-03-28 13:28:54 +0100
commitc51fe012d6eef371913a9eead0ca07b59f4f570e (patch)
tree35cf9a856c64ca68d4fa0921405ac61ba70feaef
downloadaur-python-labjackpython-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore9
-rw-r--r--PKGBUILD34
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6d319d84eeb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = python-labjackpython-git
+ pkgdesc = Python module for communicating with LabJack devices
+ pkgver = 533.1ccdd45
+ pkgrel = 1
+ url = http://labjack.com/support/labjackpython
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = python
+ depends = labjack-exodriver
+ provides = python-labjackpython
+ conflicts = python-labjackpython
+ source = LabJackPython::git+https://github.com/labjack/LabJackPython
+ md5sums = SKIP
+
+pkgname = python-labjackpython-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e17e10759f7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+LabJackPython/*
+pkg/*
+src/*
+*.tar.gz
+*.tar.xz
+*.tar.bz2
+*.tar.zst
+*.zip
+*.swp
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dc3e054a72e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Contributor: Spyros Stathopoulos <spystath@gmail.com>
+pkgname=python-labjackpython-git
+_gitname="LabJackPython"
+pkgver=533.1ccdd45
+pkgrel=1
+pkgdesc="Python module for communicating with LabJack devices"
+arch=('any')
+url="http://labjack.com/support/labjackpython"
+license=('MIT')
+depends=('python' 'labjack-exodriver')
+conflicts=('python-labjackpython')
+provides=('python-labjackpython')
+makedepends=('git')
+source=("${_gitname}::git+https://github.com/labjack/LabJackPython")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}"/"${_gitname}"
+ echo $(git rev-list --count master).$(git rev-parse --short master)
+}
+
+build() {
+ cd "$srcdir/${_gitname}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${_gitname}"
+ mkdir -p ${pkgdir}/usr/share/doc/labjackpython
+ python setup.py install --prefix=/usr --root="${pkgdir}"
+ cp -dpr --no-preserve=ownership \
+ Examples ${pkgdir}/usr/share/doc/labjackpython
+}
+# vim:ts=2:sw=2:et