PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/core/python-docutils/PAGBUILD.yaml main

21 lines Raw ← Back
123456789101112131415161718192021
pkgname: python-docutils
pkgver: '0.23'
pkgrel: '3'
pkgdesc: Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX
url: 'https://docutils.sourceforge.net'
arch: x86_64
depends: []
makedepends:
- python-setuptools
- python-wheel
source:
- 'https://downloads.sourceforge.net/docutils/docutils-${pkgver}.tar.gz'
sha256sums:
- 746f5060322511280a1e50eb76846ed6bf2342984b2ac04dc42caa1a8d78799e
build: "cd docutils-${pkgver}\n\npip3 wheel -w dist \\\n  --no-build-isolation \\\n  --no-deps $PWD\npip3 install --no-index\
  \ \\\n  --find-links dist \\\n  --no-cache-dir    \\\n  --no-user         \\\n  --root=${PKGDIR}       \\\n  docutils\n\n\
  find ${PKGDIR} -type d -name vendor -o -name tests |xargs rm -rf \n"
package: |
  # docutils 0.23 (pip) nie dostarcza skryptu rst2man; dostarczamy cienki wrapper.
  printf '#!/usr/bin/python3\nfrom docutils.core import publish_cmdline\npublish_cmdline(writer_name="manpage")\n' > ${PKGDIR}/usr/bin/rst2man
  chmod 755 ${PKGDIR}/usr/bin/rst2man