diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 38 insertions, 16 deletions
@@ -1,19 +1,29 @@ pkgbase = python-ivi-git pkgdesc = Python Interchangeable Virtual Instrument Library - pkgver = 0.14.9.r0.g7edbd63 + pkgver = 0.14.9.r38.gd7ca59d pkgrel = 1 url = https://github.com/python-ivi/python-ivi arch = any license = MIT makedepends = git + source = python-ivi::git+https://github.com/python-ivi/python-ivi.git + md5sums = SKIP + +pkgname = python-ivi-git depends = python depends = python-numpy optdepends = python-vxi11: VXI11 instrument support optdepends = python-usbtmc: USBTMC instrument support optdepends = python-pyvisa: PyVISA interface for NI drivers provides = python-ivi - source = python-ivi::git+https://github.com/python-ivi/python-ivi.git - md5sums = SKIP + conflicts = python-ivi -pkgname = python-ivi-git +pkgname = python2-ivi-git + depends = python2 + depends = python2-numpy + optdepends = python2-vxi11: VXI11 instrument support + optdepends = python2-usbtmc: USBTMC instrument support + optdepends = python2-pyvisa: PyVISA interface for NI drivers + provides = python2-ivi + conflicts = python2-ivi @@ -1,19 +1,12 @@ # Maintainer: Alex Forencich <alex@alexforencich.com> -pkgname=python-ivi-git -pkgver=0.14.9.r0.g7edbd63 +pkgname=(python-ivi-git python2-ivi-git) +pkgver=0.14.9.r38.gd7ca59d pkgrel=1 pkgdesc="Python Interchangeable Virtual Instrument Library" arch=('any') url="https://github.com/python-ivi/python-ivi" license=('MIT') -depends=('python' 'python-numpy') makedepends=('git') -provides=('python-ivi') -optdepends=( - 'python-vxi11: VXI11 instrument support' - 'python-usbtmc: USBTMC instrument support' - 'python-pyvisa: PyVISA interface for NI drivers' -) _gitroot='https://github.com/python-ivi/python-ivi.git' _gitname='python-ivi' @@ -26,12 +19,31 @@ pkgver() { git describe --tags --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' } -build() { +package_python-ivi-git() { + depends=('python' 'python-numpy') + provides=('python-ivi') + conflicts=('python-ivi') + optdepends=( + 'python-vxi11: VXI11 instrument support' + 'python-usbtmc: USBTMC instrument support' + 'python-pyvisa: PyVISA interface for NI drivers' + ) + cd "$srcdir/$_gitname" + python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 } -package() { +package_python2-ivi-git() { + depends=('python2' 'python2-numpy') + provides=('python2-ivi') + conflicts=('python2-ivi') + optdepends=( + 'python2-vxi11: VXI11 instrument support' + 'python2-usbtmc: USBTMC instrument support' + 'python2-pyvisa: PyVISA interface for NI drivers' + ) + cd "$srcdir/$_gitname" - python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 + python2 setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 } |