diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-11-18 21:25:41 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-11-18 21:25:41 +0100 |
commit | 25ebfd29e132cf1c238a70f57afc0be0548c4474 (patch) | |
tree | e6924a166dff0ccc21617c21f23795675948eebd /python2-numpydoc | |
parent | derp (diff) | |
download | aur-packages-25ebfd29e132cf1c238a70f57afc0be0548c4474.tar.gz aur-packages-25ebfd29e132cf1c238a70f57afc0be0548c4474.tar.bz2 aur-packages-25ebfd29e132cf1c238a70f57afc0be0548c4474.tar.xz |
adopt python2-numpydoc + update gitignore
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'python2-numpydoc')
-rw-r--r-- | python2-numpydoc/PKGBUILD | 27 | ||||
-rwxr-xr-x | python2-numpydoc/watch | 17 |
2 files changed, 44 insertions, 0 deletions
diff --git a/python2-numpydoc/PKGBUILD b/python2-numpydoc/PKGBUILD new file mode 100644 index 0000000..18960ac --- /dev/null +++ b/python2-numpydoc/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Mattias Andrée <maandree@operamail.com> +pkgname=python2-numpydoc +pkgver=0.4 +pkgrel=1 +pkgdesc="Sphinx extension to support docstrings in Numpy format" +arch=('any') +url="http://projects.scipy.org/numpy/browser/trunk/doc/sphinxext" +license=('BSD') +depends=('python2' 'python2-sphinx') +conflicts=(python-numpydoc) +backup=() +options=(!emptydirs) +install= +source=(http://pypi.python.org/packages/source/n/numpydoc/numpydoc-$pkgver.tar.gz) +md5sums=('e5bdd98f84f2bb220373819e20c27091') + +build() { + + cd "$srcdir/numpydoc-$pkgver" + + python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1 + + install -D -m644 "$srcdir/numpydoc-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + chmod 644 "$pkgdir"/usr/lib/python*/site-packages/numpydoc-$pkgver-py*.egg-info/* + +} diff --git a/python2-numpydoc/watch b/python2-numpydoc/watch new file mode 100755 index 0000000..a7dace9 --- /dev/null +++ b/python2-numpydoc/watch @@ -0,0 +1,17 @@ +#!/bin/sh + +wget http://pypi.python.org/packages/source/n/numpydoc/ >/dev/null 2>/dev/null +if [ $? = 0 ]; then + grep numpydoc- < index.html | md5sum > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'python2-numpydoc' + fi + rm index.html +else + echo 'python2-numpydoc (unfetchable)' +fi + |