aur-packages/python-numpydoc/PKGBUILD

29 lines
968 B
Bash

# Maintainer: Trent Palmer trenttdually at gmail
# Previous maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
# Previous maintainer: Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>
pkgname=python-numpydoc
pkgver=0.9.2
pkgrel=1
pkgdesc="Sphinx extension to support docstrings in Numpy format"
arch=('any')
url="https://github.com/numpy/numpydoc"
license=('BSD')
depends=('python-sphinx')
backup=()
options=(!emptydirs)
source=("$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha512sums=('765f096cf48710c80fa0e131ce8e06de9d61f214829924b3c109d6b938dfa011bbf79965e07e49640c11f74ac262d3fef176ae4f651016ec81d5bc252141b9eb')
package() {
cd "$srcdir/numpydoc-$pkgver"
python 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/*
}