Date: Wednesday, December 1, 2021 @ 14:48:55 Author: foutrelis Revision: 1059344
archrelease: copy trunk to community-staging-any Added: python-sphinx-autorun/repos/community-staging-any/ python-sphinx-autorun/repos/community-staging-any/PKGBUILD (from rev 1059343, python-sphinx-autorun/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: python-sphinx-autorun/repos/community-staging-any/PKGBUILD (from rev 1059343, python-sphinx-autorun/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2021-12-01 14:48:55 UTC (rev 1059344) @@ -0,0 +1,31 @@ +# Maintainer: Morten Linderud <foxbo...@archlinux.org> + +pkgname=python-sphinx-autorun +_pkgname=sphinx-autorun +pkgver=1.1.1 +pkgrel=4 +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" +}