Commit bc70203
0
plików
+0
dodanych
-0
usuniętych
@@ -4,11 +4,13 @@ pkgrel: '1'
4
4
pkgdesc: 'Python 3 syntax highlighter'
5
5
url: 'http://pygments.org'
6
6
arch: x86_64
7
+license:
8
+- BSD-2-Clause
7
9
depends: []
8
10
makedepends:
11
+- 'python'
9
12
- 'python-build'
10
13
- 'python-installer'
11
-- 'python-wheel'
12
14
- 'python-hatchling'
13
15
- 'python-pathspec'
14
16
- 'python-pluggy'
@@ -43,10 +45,19 @@ footprint: |
43
45
build: |
44
46
cd pygments-${pkgver}
45
47
46
- python3 -m build --wheel --no-isolation
48
+ # Wymuszenie widoczności pakietów systemowych
49
+ export PYTHONPATH="/usr/lib/python3.14/site-packages:${PYTHONPATH}"
50
+
51
+ # Bezpośrednie wywołanie backendu Hatchling do zbudowania paczki wheel w dist/
52
+ mkdir -p dist
53
+ python3 -c "from hatchling.build import build_wheel; build_wheel('dist')"
54
+
55
+ # Instalacja zbudowanego pliku wheel do PKGDIR
47
56
python3 -m installer --destdir="${PKGDIR}" dist/*.whl
48
57
49
- find ${PKGDIR} -type d \( -name vendor -o -name tests \) -exec rm -rf {} +
58
+ # Czyszczenie zbytecznych katalogów oraz testów
59
+ find "${PKGDIR}" -type d \( -name vendor -o -name tests \) -exec rm -rf {} +
60
+ install -Dm 644 LICENSE "${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE"
50
61
51
62
package: |
52
63
true