summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Forencich2016-10-15 22:47:36 -0700
committerAlex Forencich2016-10-15 22:47:36 -0700
commit0d4faa3e9207338f85a024fc6d9d0acbd6c0deaa (patch)
treef93c5c0a2abb03ea710eefffc6e6e87aa2bab68d
parent185ffb870ea922358fe5c76ffeb7a2213fa20a94 (diff)
downloadaur-0d4faa3e9207338f85a024fc6d9d0acbd6c0deaa.tar.gz
Convert to split package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD36
2 files changed, 38 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e720dab337e..2b01208f0af 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index b193564116b..b3d9f863f74 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}