diff options
author | Jingbei Li | 2017-06-22 18:12:22 +0800 |
---|---|---|
committer | Jingbei Li | 2017-06-22 18:12:22 +0800 |
commit | df67594140f20e350fdca8fd02a2cb799bebfc22 (patch) | |
tree | c795b65a3d2dbe0795564bfcfaa68548d1c19fa6 | |
download | aur-df67594140f20e350fdca8fd02a2cb799bebfc22.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 50 |
3 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d2cdc7aa16f0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +# Generated by mksrcinfo v8 +# Thu Jun 22 10:11:00 UTC 2017 +pkgbase = python-pygpu-git + pkgdesc = Python bindings for libgpuarray + pkgver = 0.6.7 + pkgrel = 1 + url = https://github.com/Theano/libgpuarray + arch = x86_64 + arch = i686 + license = MIT + makedepends = git + makedepends = cmake + makedepends = python-setuptools + makedepends = python2-setuptools + makedepends = cython + makedepends = cython2 + makedepends = python-numpy + makedepends = python2-numpy + depends = libgpuarray-git + optdepends = python-pycuda + optdepends = python-pyopencl + source = git+https://github.com/Theano/libgpuarray.git + md5sums = SKIP + +pkgname = python-pygpu-git + depends = libgpuarray-git + depends = python + +pkgname = python2-pygpu-git + depends = libgpuarray-git + depends = python2 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..722161a3138e --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*/ +*.pkg* +*.log +*.sw* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..44b569353b04 --- /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" +} |