Date: Saturday, June 27, 2020 @ 20:40:18 Author: foxboron Revision: 655082
upgpkg: python-sphinx-autorun 1.1.1-1 Added: python-sphinx-autorun/trunk/PKGBUILD ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Added: PKGBUILD =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-06-27 20:40:18 UTC (rev 655082) @@ -0,0 +1,31 @@ +# Maintainer: Morten Linderud <[email protected]> + +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" +}
