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

Daniel M. Capella polyzen at gemini.archlinux.org
Sun Sep 4 18:49:23 UTC 2022


    Date: Sunday, September 4, 2022 @ 18:49:23
  Author: polyzen
Revision: 1292872

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   94 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 49 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-04 18:48:59 UTC (rev 1292871)
+++ PKGBUILD	2022-09-04 18:49:23 UTC (rev 1292872)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Sébastien Luttringer
-# Contributor : Ionut Biru <ibiru at archlinux.org>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-_name=docutils
-pkgname=python-docutils
-pkgver=0.19
-pkgrel=1
-epoch=1
-pkgdesc='Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX'
-arch=('any')
-url='http://docutils.sourceforge.net'
-license=('custom')
-depends=('python')
-makedepends=('python-setuptools')
-source=("https://downloads.sourceforge.net/$_name/$_name-$pkgver.tar.gz")
-sha512sums=('fb904a899f2b6f3c07c5079577bd7c52a3182cb85f6a4149391e523498df15bfa317f0c04095b890beeb3f89c2b444875a2a609d880ac4d7fbc3125e46b37ea5')
-
-build() {
-  cd $_name-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd $_name-$pkgver
-  # we need utf locale to valid utf8 tests
-  export LANG=en_US.UTF-8
-  PYTHONPATH="$PWD/build/python/" python test/alltests.py
-}
-
-package() {
-  cd $_name-$pkgver
-  python setup.py build install --root="$pkgdir" --optimize=1
-  # symlink without .py
-  for f in "$pkgdir"/usr/bin/*.py; do
-      ln -s "$(basename $f)" "$pkgdir/usr/bin/$(basename $f .py)"
-  done
-  # setup license
-  install -D -m644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"
-  install -D -m644 licenses/python* "$pkgdir/usr/share/licenses/$pkgname/"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-docutils/repos/community-any/PKGBUILD (from rev 1292871, python-docutils/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-04 18:49:23 UTC (rev 1292872)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Sébastien Luttringer
+# Contributor : Ionut Biru <ibiru at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+_name=docutils
+pkgname=python-docutils
+pkgver=0.19
+pkgrel=2
+epoch=1
+pkgdesc='Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX'
+arch=('any')
+url='http://docutils.sourceforge.net'
+license=('custom')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+             'python-wheel')
+source=("https://downloads.sourceforge.net/$_name/$_name-$pkgver.tar.gz")
+sha512sums=('fb904a899f2b6f3c07c5079577bd7c52a3182cb85f6a4149391e523498df15bfa317f0c04095b890beeb3f89c2b444875a2a609d880ac4d7fbc3125e46b37ea5')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  # we need utf locale to valid utf8 tests
+  export LANG=en_US.UTF-8
+  PYTHONPATH="$PWD/build/python/" python test/alltests.py
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  # symlink without .py
+  for f in "$pkgdir"/usr/bin/*.py; do
+      ln -s "$(basename "$f")" "$pkgdir/usr/bin/$(basename "$f" .py)"
+  done
+
+  # symlink license file
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s "$site_packages"/docutils-$pkgver.dist-info/COPYING.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/COPYING.txt
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list