diff options
author | Sajaysurya Ganesh | 2018-07-07 00:43:09 +0100 |
---|---|---|
committer | Sajaysurya Ganesh | 2018-07-07 00:43:09 +0100 |
commit | e6dd7f1c2a7d733f39beaa3040323a687985159a (patch) | |
tree | 13088e43b9d431769e7710c5017b3bb6dc221f02 | |
download | aur-e6dd7f1c2a7d733f39beaa3040323a687985159a.tar.gz |
Initial commit
Signed-off-by: Sajaysurya Ganesh <sajay.surya@gmail.com>
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ac7aa0007fee --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-pycolab-git + pkgdesc = DeepMind pycolab + pkgver = 1 + pkgrel = 1 + url = https://github.com/deepmind/pycolab + arch = any + license = Apache 2.0 + makedepends = git + depends = python-setuptools + depends = python-numpy + depends = python-scipy + provides = python-colab + conflicts = python-colab + source = git+https://github.com/deepmind/pycolab.git + md5sums = SKIP + +pkgname = python-pycolab-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ec76fe485d11 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Sajaysurya Ganesh <sajay.surya@gmail.com> + +pkgname='python-pycolab-git' +pkgver=1 +pkgrel=1 +pkgdesc="DeepMind pycolab" +arch=('any') +url="https://github.com/deepmind/pycolab" +license=('Apache 2.0') +groups=() +depends=('python-setuptools' 'python-numpy' 'python-scipy') +makedepends=('git') +provides=('python-colab') +conflicts=('python-colab') +backup=() +options=() +source=('git+https://github.com/deepmind/pycolab.git') +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-VCS}" + +# Git, no tags available + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + python setup.py build +} + +package() { + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build +} |