[arch-commits] Commit in python-build/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Saturday, October 31, 2020 @ 16:02:49
  Author: ffy00
Revision: 737844

archrelease: copy trunk to community-any

Added:
  python-build/repos/community-any/PKGBUILD
    (from rev 737843, python-build/trunk/PKGBUILD)
Deleted:
  python-build/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   77 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 40 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-31 16:02:30 UTC (rev 737843)
+++ PKGBUILD	2020-10-31 16:02:49 UTC (rev 737844)
@@ -1,37 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=build
-pkgname=python-$_pkgname
-pkgver=0.0.4
-pkgrel=1
-pkgdesc='A simple, correct PEP517 package builder'
-arch=('any')
-url='https://github.com/FFY00/python-build'
-license=('GPL')
-depends=('python-toml' 'python-pep517' 'python-packaging')
-makedepends=('git' 'python-setuptools'
-             'python-sphinx' 'python-sphinxcontrib-autoprogram' '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')
-
-build() {
-  cd $pkgname
-
-  python setup.py build
-
-  cd docs
-
-  PYTHONPATH=.. make
-}
-
-package() {
-  cd $pkgname
-
-  python setup.py install --root="$pkgdir" --skip-build
-  python -m compileall --invalidation-mode=checked-hash "$pkgdir"
-
-  install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
-  cp -r -a --no-preserve=ownership docs/build/html "$pkgdir"/usr/share/doc/$pkgname
-}
-

Copied: python-build/repos/community-any/PKGBUILD (from rev 737843, python-build/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-31 16:02:49 UTC (rev 737844)
@@ -0,0 +1,40 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=build
+pkgname=python-$_pkgname
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='A simple, correct PEP517 package builder'
+arch=('any')
+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-sphinx-furo')
+source=("git+$url#tag=$pkgver?signed")
+validpgpkeys=('3DCE51D60930EBA47858BA4146F633CBB0EB4BF2') # Filipe Laíns (FFY00) <lains at archlinux.org>
+sha512sums=('SKIP')
+
+build() {
+  cd $_pkgname
+
+  python setup.py build
+
+  cd docs
+
+  PYTHONPATH=../src sphinx-build -b dirhtml -v source build/html
+}
+
+package() {
+  cd $_pkgname
+
+  python setup.py install --root="$pkgdir" --skip-build
+  python -m compileall --invalidation-mode=checked-hash "$pkgdir"
+
+  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