← recipes

Commit b7a0aa5

0
plików
+0
dodanych
-0
usuniętych
@@ -9,10 +9,7 @@ license:
9 9 depends:
10 10 - python
11 11 - protobuf
12 -- abseil-cpp
13 12 makedepends:
14 -- cmake
15 -- ninja
16 13 - python-setuptools
17 14 - python-build
18 15 - python-installer
@@ -22,25 +19,9 @@ source:
22 19 sha256sums:
23 20 - SKIP
24 21 build: |
25 - cd protobuf-${pkgver}
26 -
27 - # 1. Konfiguracja CMake z wymuszeniem użycia systemowego Abseil oraz shared libs
28 - cmake -B build -G Ninja \
29 - -DCMAKE_BUILD_TYPE=Release \
30 - -DCMAKE_INSTALL_PREFIX=/usr \
31 - -DBUILD_SHARED_LIBS=ON \
32 - -Dprotobuf_BUILD_TESTS=OFF \
33 - -Dprotobuf_BUILD_PROTOC_BINARIES=OFF \
34 - -Dprotobuf_ABSL_PROVIDER=package
35 -
36 - cmake --build build
37 -
38 - # 2. Wygenerowanie i budowanie paczki dla Pythona
39 - cd python
40 - export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
22 + cd protobuf-${pkgver}/python
41 23 python -m build --wheel --no-isolation
42 24 python -m installer --destdir="${PKGDIR}" dist/*.whl
43 -
44 25 install -Dm644 ../LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
45 26 package: |
46 27 true