summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJingbei Li2017-06-22 18:12:22 +0800
committerJingbei Li2017-06-22 18:12:22 +0800
commitdf67594140f20e350fdca8fd02a2cb799bebfc22 (patch)
treec795b65a3d2dbe0795564bfcfaa68548d1c19fa6 /PKGBUILD
downloadaur-df67594140f20e350fdca8fd02a2cb799bebfc22.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..44b569353b0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Jingbei Li <i@jingbei.li>
+# Contributor: David McInnis <davidm@eagles.ewu.edu>
+pkgbase='python-pygpu-git'
+pkgname=('python-pygpu-git' 'python2-pygpu-git')
+pkgver=0.6.7
+_gitname="libgpuarray"
+pkgrel=1
+pkgdesc="Python bindings for libgpuarray"
+arch=('x86_64' 'i686')
+url="https://github.com/Theano/libgpuarray"
+license=('MIT')
+depends=('libgpuarray-git')
+#checkdepends=('python-nose')
+makedepends=('git' 'cmake' 'python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'python-numpy' 'python2-numpy')
+optdepends=('python-pycuda' 'python-pyopencl')
+source=('git+https://github.com/Theano/libgpuarray.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_gitname"
+ git describe --always --tags | sed -e 's/-/./g' -e 's/v//g'
+}
+
+build() {
+ msg "Building....."
+ cd "$srcdir/${_gitname}"
+ python setup.py build_ext -L /usr/lib -I /usr/include
+
+}
+
+#check() {
+# msg "Checking...."
+# cd "$srcdir/${_gitname}"
+# python setup.py test
+#
+#}
+
+package_python-pygpu-git() {
+ depends+=('python')
+ cd "$srcdir/${_gitname}"
+ python setup.py install --root="$pkgdir"/ --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
+
+package_python2-pygpu-git() {
+ depends+=('python2')
+ cd "$srcdir/${_gitname}"
+ python2 setup.py install --root="$pkgdir"/ --optimize=1
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}