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

Filipe Laíns ffy00 at archlinux.org
Sat Oct 31 16:02:30 UTC 2020


    Date: Saturday, October 31, 2020 @ 16:02:30
  Author: ffy00
Revision: 737843

upgpkg: python-build 0.1.0-1

Modified:
  python-build/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-31 15:51:39 UTC (rev 737842)
+++ PKGBUILD	2020-10-31 16:02:30 UTC (rev 737843)
@@ -2,31 +2,31 @@
 
 _pkgname=build
 pkgname=python-$_pkgname
-pkgver=0.0.4
+pkgver=0.1.0
 pkgrel=1
 pkgdesc='A simple, correct PEP517 package builder'
 arch=('any')
-url='https://github.com/FFY00/python-build'
-license=('GPL')
+url='https://github.com/pypa/build'
+license=('MIT')
 depends=('python-toml' 'python-pep517' 'python-packaging')
 makedepends=('git' 'python-setuptools'
-             'python-sphinx' 'python-sphinxcontrib-autoprogram' 'python-sphinx-autodoc-typehints' 'python-pallets-sphinx-themes')
+             'python-sphinx' 'python-sphinxcontrib-autoprogram' 'python-sphinx-autodoc-typehints' 'python-sphinx-furo')
 source=("git+$url#tag=$pkgver?signed")
 validpgpkeys=('3DCE51D60930EBA47858BA4146F633CBB0EB4BF2') # Filipe Laíns (FFY00) <lains at archlinux.org>
 sha512sums=('SKIP')
 
 build() {
-  cd $pkgname
+  cd $_pkgname
 
   python setup.py build
 
   cd docs
 
-  PYTHONPATH=.. make
+  PYTHONPATH=../src sphinx-build -b dirhtml -v source build/html
 }
 
 package() {
-  cd $pkgname
+  cd $_pkgname
 
   python setup.py install --root="$pkgdir" --skip-build
   python -m compileall --invalidation-mode=checked-hash "$pkgdir"
@@ -33,5 +33,8 @@
 
   install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
   cp -r -a --no-preserve=ownership docs/build/html "$pkgdir"/usr/share/doc/$pkgname
+  rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 



More information about the arch-commits mailing list