summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorxantares2015-06-08 23:37:04 +0200
committerxantares2015-06-08 23:37:04 +0200
commit9724b122c2e6ab026d70be1e5ec6e930495a20d5 (patch)
treea9a66e5f834fab765eaf1a68fbe5fd6b67a2ad3b /PKGBUILD
downloadaur-9724b122c2e6ab026d70be1e5ec6e930495a20d5.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..59a3d58cc5e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Contributor: Ishan Arora <ishanarora@gmail.com>
+
+pkbase=python-oct2py
+pkgname=('python-oct2py' 'python2-oct2py')
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="Python to GNU Octave bridge."
+arch=('any')
+url="http://github.com/blink1073/oct2py"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://github.com/blink1073/oct2py/archive/v${pkgver}.tar.gz")
+md5sums=('042590ba6e04adddc1ef9e735e441e81')
+
+build() {
+ cp -r "${srcdir}"/oct2py-$pkgver "${srcdir}"/oct2py-$pkgver-py2
+
+ cd "${srcdir}"/oct2py-$pkgver
+ python setup.py build
+
+ cd "${srcdir}"/oct2py-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python-oct2py() {
+ depends=('python-scipy' 'octave')
+
+ cd "${srcdir}"/oct2py-$pkgver
+ python setup.py install --root="${pkgdir}"
+}
+
+package_python2-oct2py() {
+ depends=('python2-scipy' 'octave')
+
+ cd "${srcdir}"/oct2py-$pkgver-py2
+ python2 setup.py install --root="${pkgdir}"
+}
+
+