[arch-commits] Commit in python-sphinx-autorun/repos (2 files)

Morten Linderud foxboron at archlinux.org
Sat Jun 27 20:40:25 UTC 2020


    Date: Saturday, June 27, 2020 @ 20:40:25
  Author: foxboron
Revision: 655083

archrelease: copy trunk to community-any

Added:
  python-sphinx-autorun/repos/community-any/
  python-sphinx-autorun/repos/community-any/PKGBUILD
    (from rev 655082, python-sphinx-autorun/trunk/PKGBUILD)

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

Copied: python-sphinx-autorun/repos/community-any/PKGBUILD (from rev 655082, python-sphinx-autorun/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-06-27 20:40:25 UTC (rev 655083)
@@ -0,0 +1,31 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=python-sphinx-autorun
+_pkgname=sphinx-autorun
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="Sphinx extension to execute the code output it into a document."
+arch=('any')
+url="https://github.com/WhyNotHugo/sphinx-autorun"
+license=('BSD')
+depends=('python')
+makedepends=('git' 'python-setuptools-scm')
+_commit=7a4c2c99a29e5e9e9b0838fac0419d00c5675f8b
+source=("git+https://github.com/WhyNotHugo/sphinx-autorun#commit=${_commit}")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd "${_pkgname}"
+  git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+    cd "${_pkgname}"
+    python setup.py build
+}
+
+package() {
+    cd "${_pkgname}"
+    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+    install -Dm0644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
+}



More information about the arch-commits mailing list