[arch-commits] Commit in python-sphinxcontrib-mermaid/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Wed Mar 25 17:02:07 UTC 2020


    Date: Wednesday, March 25, 2020 @ 17:02:06
  Author: ffy00
Revision: 604346

upgpkg: sphinx-sphinxcontrib-mermaid 0.3.1-1

Added:
  python-sphinxcontrib-mermaid/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-25 17:02:06 UTC (rev 604346)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=sphinxcontrib-mermaid
+pkgname=sphinx-$_pkgname
+pkgver=0.3.1
+pkgrel=1
+pkgdesc='Mermaid diagrams in yours sphinx powered docs'
+arch=('any')
+url='https://github.com/mgaitan/sphinxcontrib-mermaid'
+license=('BSD')
+depends=('python-sphinx')
+makedepends=('python-setuptools' "$pkgname")
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('ed9da58bfeff1dace9bcf6fe58355a84419d72304a5e3232939517a41a764e2e8587a8e281da06075d2719c5d709474ca74f7c7cf498360d88c55d613e58a303')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+
+  cd docs
+
+  make html
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+  cp -r -a --no-preserve=ownership docs/_build/html "$pkgdir"/usr/share/doc/$pkgname
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list