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

Filipe Laíns ffy00 at archlinux.org
Tue Jun 9 15:10:40 UTC 2020


    Date: Tuesday, June 9, 2020 @ 15:10:39
  Author: ffy00
Revision: 640768

upgpkg: python-build 0.0.3-1

Modified:
  python-build/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-09 15:02:43 UTC (rev 640767)
+++ PKGBUILD	2020-06-09 15:10:39 UTC (rev 640768)
@@ -2,7 +2,7 @@
 
 _pkgname=build
 pkgname=python-$_pkgname
-pkgver=0.0.2
+pkgver=0.0.3
 pkgrel=1
 pkgdesc='A simple, correct PEP517 package builder'
 arch=('any')
@@ -9,7 +9,8 @@
 url='https://github.com/FFY00/python-build'
 license=('GPL')
 depends=('python-toml' 'python-pep517' 'python-packaging')
-makedepends=('git' 'python-setuptools')
+makedepends=('git' 'python-setuptools'
+             'python-sphinx' 'python-sphinx-autodoc-typehints' 'python-pallets-sphinx-themes')
 source=("git+$url#tag=$pkgver?signed")
 validpgpkeys=('3DCE51D60930EBA47858BA4146F633CBB0EB4BF2') # Filipe Laíns (FFY00) <lains at archlinux.org>
 sha512sums=('SKIP')
@@ -18,6 +19,10 @@
   cd $pkgname
 
   python setup.py build
+
+  cd docs
+
+  PYTHONPATH=.. make
 }
 
 package() {
@@ -24,5 +29,8 @@
   cd $pkgname
 
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+  cp -r -a --no-preserve=ownership docs/build/html "$pkgdir"/usr/share/doc/$pkgname
 }
 



More information about the arch-commits mailing list