Commit 0f470c6
0
plików
+0
dodanych
-0
usuniętych
@@ -10,33 +10,23 @@ depends:
10
10
- python
11
11
- protobuf
12
12
makedepends:
13
-- cmake
14
-- ninja
15
13
- python-setuptools
16
14
- python-build
17
15
- python-installer
18
16
- python-wheel
19
17
source:
20
-- 'https://github.com/protocolbuffers/protobuf/archive/refs/tags/v${pkgver}.tar.gz'
18
+- 'https://files.pythonhosted.org/packages/source/p/protobuf/protobuf-${pkgver}.tar.gz'
21
19
sha256sums:
22
-- SKIP
20
+- e07ffec5348882ca6c968f9b908eb881515efdb4791ee5974cf9d92410a563db
23
21
build: |
24
22
cd protobuf-${pkgver}
25
23
26
- # Konfiguracja CMake z włączeniem wygenerowania modułu python
27
- cmake -B build -G Ninja \
28
- -DCMAKE_BUILD_TYPE=Release \
29
- -DCMAKE_INSTALL_PREFIX=/usr \
30
- -Dprotobuf_BUILD_TESTS=OFF \
31
- -Dprotobuf_WITH_ZLIB=ON
24
+ # Wymuszenie użycia systemowej biblioteki C++ protobuf (Abseil zlinkuje systemowo)
25
+ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
32
26
33
- cmake --build build
34
-
35
- # Instalacja bindingów Pythona wygenerowanych w drzewie build
36
- cd python
37
27
python -m build --wheel --no-isolation
38
28
python -m installer --destdir="${PKGDIR}" dist/*.whl
39
29
40
- install -Dm644 ../LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
30
+ install -Dm644 LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
41
31
package: |
42
32
true