diff options
author | Alex Forencich | 2015-07-20 12:17:57 -0700 |
---|---|---|
committer | Alex Forencich | 2015-07-20 12:17:57 -0700 |
commit | 185ffb870ea922358fe5c76ffeb7a2213fa20a94 (patch) | |
tree | d201cbc0790ed12422a8244178ec64bd1da52e85 /PKGBUILD | |
download | aur-185ffb870ea922358fe5c76ffeb7a2213fa20a94.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b193564116bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Alex Forencich <alex@alexforencich.com> +pkgname=python-ivi-git +pkgver=0.14.9.r0.g7edbd63 +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' + +source=("$_gitname::git+$_gitroot") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_gitname" + git describe --tags --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/$_gitname" +} + +package() { + cd "$srcdir/$_gitname" + python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 +} + |