Commit 4720a19
0
plików
+0
dodanych
-0
usuniętych
@@ -14,13 +14,29 @@ makedepends:
14
14
- python-build
15
15
- python-installer
16
16
- python-wheel
17
+- cmake
17
18
source:
18
19
- 'https://github.com/protocolbuffers/protobuf/archive/refs/tags/v${pkgver}.tar.gz'
19
20
sha256sums:
20
21
- SKIP
21
22
build: |
22
- cd protobuf-${pkgver}/python
23
+ cd protobuf-${pkgver}
24
+
25
+ # Generowanie i kompilacja interfejsu Pythona z użyciem systemowego protoc/cmake
26
+ cmake -B build-python \
27
+ -S cmake \
28
+ -Dprotobuf_BUILD_TESTS=OFF \
29
+ -Dprotobuf_BUILD_PROTOC_BINARIES=OFF \
30
+ -Dprotobuf_BUILD_LIBPROTOC=OFF
31
+
32
+ # Przejście do katalogu python i wygenerowanie setup.py / kodów .py z .proto
33
+ cd python
34
+ python setup.py build --cpp_implementation
35
+
36
+ # Budowanie wheel i instalacja do PKGDIR
23
37
python -m build --wheel --no-isolation
24
38
python -m installer --destdir="${PKGDIR}" dist/*.whl
39
+
40
+ install -Dm644 ../LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
25
41
package: |
26
42
true