← recipes

Commit c36e9f6

0
plików
+0
dodanych
-0
usuniętych
@@ -6,6 +6,9 @@ url: 'https://www.sphinx-doc.org/'
6 6 arch: x86_64
7 7 depends: []
8 8 makedepends:
9 +- python-build
10 +- python-installer
11 +- python-flit-core
9 12 - python-setuptools
10 13 - python-wheel
11 14 - python-docutils
@@ -28,9 +31,18 @@ source:
28 31 - 'https://pypi.org/packages/source/s/sphinx/sphinx-${pkgver}.tar.gz'
29 32 sha256sums:
30 33 - 7741722357dd75f8190766926071fed3bdc211c74dd2d7d4df5404da95930ddb
31 -build: "localedef -i en_US -f UTF-8 en_US.UTF-8\n install -d ./sphinx-${pkgver}\n LC_ALL=en_US.UTF-8 LANG=en_US.utf-8\
32 - \ \\\n bsdtar -xf ./sphinx-${pkgver}.tar.gz \\\n -C .\nsed -e 's/0.22/0.23/' -i sphinx-${pkgver}/pyproject.toml\n\
33 - \npython -m installer \\\n --destdir=${PKGDIR} \\\n dist/*.whl\n\nfind ${PKGDIR} -type d -name vendor -o -name tests |xargs\
34 - \ rm -rf \n"
34 +build: |
35 + localedef -i en_US -f UTF-8 en_US.UTF-8
36 + export LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
37 +
38 + bsdtar -xf ./sphinx-${pkgver}.tar.gz -C .
39 + cd sphinx-${pkgver}
40 +
41 + sed -e 's/0.22/0.23/' -i pyproject.toml
42 +
43 + python -m build --wheel --no-isolation
44 + python -m installer --destdir="${PKGDIR}" dist/*.whl
45 +
46 + find "${PKGDIR}" -type d \( -name vendor -o -name tests \) -exec rm -rf {} +
35 47 package: |
36 - true
48 + true