diff options
author | Fabien Dubosson | 2015-06-30 09:18:55 +0200 |
---|---|---|
committer | Fabien Dubosson | 2015-06-30 09:18:55 +0200 |
commit | 9f25c6544ef90d12d4c8d50f4eb64115424a7c08 (patch) | |
tree | 98deee22ffdabb22d48706696f27d230d6c037cc | |
download | aur-9f25c6544ef90d12d4c8d50f4eb64115424a7c08.tar.gz |
Package created
-rw-r--r-- | .SRCINFO | 36 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | PKGBUILD | 51 |
4 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b420d9d0b6a4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,36 @@ +pkgbase = python-keras + pkgdesc = Theano-based Deep Learning library (convnets, recurrent neural networks, and more) + pkgver = 0.1.1 + pkgrel = 1 + url = https://github.com/fchollet/keras + changelog = ChangeLog + arch = i686 + arch = x86_64 + license = MIT + makedepends = python + makedepends = python-setuptools + makedepends = python-numpy + makedepends = python-scipy + makedepends = python-h5py + makedepends = python2 + makedepends = python2-setuptools + makedepends = python2-numpy + makedepends = python2-scipy + makedepends = python2-h5py + source = keras.tar.gz::https://github.com/fchollet/keras/archive/0.1.1.tar.gz + sha256sums = 5203c19b811d88873fe6fc520c7890c6c6a772692d79a3c164be251fe4941897 + +pkgname = python-keras + depends = python + depends = python-numpy + depends = python-scipy + depends = python-theano + depends = python-h5py + +pkgname = python2-keras + depends = python2 + depends = python2-numpy + depends = python2-scipy + depends = python2-theano + depends = python2-h5py + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..9d47ef9cbbc5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Downloaded and generated files +*.log +*.tar.xz +*.tar.gz + +# All sub-folders +*/ diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 000000000000..8a89d2f38984 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,4 @@ +2015-06-30 Fabien Dubosson <fabien.dubosson@gmail.com> + + * 0.1.1-1: + Package created diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4c868c7684d7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Fabien Dubosson <fabien.dubosson@gmail.com> + +pkgbase="python-keras" +pkgname=("python-keras" "python2-keras") +_pkgname="keras" +pkgver="0.1.1" +pkgrel="1" +pkgdesc="Theano-based Deep Learning library (convnets, recurrent neural networks, and more)" +arch=('i686' 'x86_64') +url="https://github.com/fchollet/keras" +license=('MIT') +makedepends=('python' 'python-setuptools' 'python-numpy' 'python-scipy' 'python-h5py' + 'python2' 'python2-setuptools' 'python2-numpy' 'python2-scipy' 'python2-h5py' + ) +changelog="ChangeLog" +source=("${_pkgname}.tar.gz::https://github.com/fchollet/${_pkgname}/archive/${pkgver}.tar.gz") +sha256sums=('5203c19b811d88873fe6fc520c7890c6c6a772692d79a3c164be251fe4941897') + +prepare() { + cd "$srcdir/" + cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2" + cd "${_pkgname}-${pkgver}" + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} + +build() { + msg "Building Python 2" + cd "$srcdir/${_pkgname}-${pkgver}-py2" + python2 setup.py build + + msg "Building Python 3" + cd "$srcdir/${_pkgname}-${pkgver}" + python setup.py build +} + +package_python2-keras() { + depends=('python2' 'python2-numpy' 'python2-scipy' 'python2-theano' 'python2-h5py') + cd "$srcdir/${_pkgname}-${pkgver}-py2" + python2 setup.py install --root="$pkgdir"/ --optimize=1 +} + +package_python-keras() { + depends=('python' 'python-numpy' 'python-scipy' 'python-theano' 'python-h5py') + cd "$srcdir/${_pkgname}-${pkgver}" + python setup.py install --root="$pkgdir"/ --optimize=1 +} + +# vim:set ts=2 sw=2 et: |