38 lines
1.2 KiB
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=python-sphinx-issues
_pyname=${pkgname/python-/}
pkgver=4.1.0
pkgrel=1
pkgdesc="Sphinx extension for linking to your project's issue tracker"
url='https://github.com/sloria/sphinx-issues'
arch=(any)
license=('MIT')
depends=('python' 'python-sphinx')
makedepends=('python-build' 'python-installer' 'python-flit-core')
checkdepends=('python-pytest')
source=(https://github.com/sloria/sphinx-issues/archive/${pkgver}/${_pyname}-${pkgver}.tar.gz)
sha512sums=('24ce1353a6596e63db2b5058d9081f6533e3108de024cd6af5dd060e2286c89a546d4e7c0541be07484302736951cfedb97ae09d3259218760e5abb670f8f647')
build() {
cd ${_pyname}-${pkgver}
python -m build --wheel --no-isolation
}
check() {
cd ${_pyname}-${pkgver}
python -m installer --destdir=tmp-install dist/*.whl
PYTHONPATH="$PWD"/tmp-install`python -c "import site; print(site.getsitepackages()[0])"` \
py.test -v
}
package() {
cd ${_pyname}-${pkgver}
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim: ts=2 sw=2 et: