| 1 | # Contributor: Fabian Affolter <[email protected]> |
| 2 | # Maintainer: Fabian Affolter <[email protected]> |
| 3 | pkgname=py3-sphinx-theme-epfl |
| 4 | _pkgname=epfl-sphinx-theme |
| 5 | pkgver=1.1.1 |
| 6 | pkgrel=10 |
| 7 | pkgdesc="The EPFL Sphinx theme" |
| 8 | url="https://pypi.org/project/epfl-sphinx-theme/" |
| 9 | arch="noarch" |
| 10 | license="GPL-3.0-only" |
| 11 | depends="python3 py3-sphinx" |
| 12 | makedepends="py3-setuptools py3-gpep517 py3-wheel" |
| 13 | subpackages="$pkgname-pyc" |
| 14 | source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" |
| 15 | builddir="$srcdir"/$_pkgname-$pkgver |
| 16 | |
| 17 | replaces="py-sphinx-theme-epfl" # Backwards compatibility |
| 18 | provides="py-sphinx-theme-epfl=$pkgver-r$pkgrel" # Backwards compatibility |
| 19 | |
| 20 | build() { |
| 21 | gpep517 build-wheel \ |
| 22 | --wheel-dir .dist \ |
| 23 | --output-fd 3 3>&1 >&2 |
| 24 | } |
| 25 | |
| 26 | package() { |
| 27 | gpep517 install-wheel --destdir "$pkgdir" \ |
| 28 | .dist/*.whl |
| 29 | } |
| 30 | |
| 31 | sha512sums="af36469cbd33c5f8d1a4ebef201838a26dc52c04b1432b6cc49b46bfb74c585aad83da11cc9ebb675ad166573af41b00bed3e4ec770dcd60330599a732196ea0 epfl-sphinx-theme-1.1.1.tar.gz" |