Commit 842f146
0
plików
+0
dodanych
-0
usuniętych
@@ -11,7 +11,6 @@ depends:
11
11
- protobuf
12
12
- abseil-cpp
13
13
makedepends:
14
-- git
15
14
- cmake
16
15
- ninja
17
16
- python-setuptools
@@ -19,23 +18,24 @@ makedepends:
19
18
- python-installer
20
19
- python-wheel
21
20
source:
22
-- 'git+https://github.com/protocolbuffers/protobuf.git#tag=v${pkgver}'
21
+- 'https://github.com/protocolbuffers/protobuf/archive/refs/tags/v${pkgver}.tar.gz'
23
22
sha256sums:
24
23
- SKIP
25
24
build: |
26
- cd protobuf
25
+ cd protobuf-${pkgver}
27
26
28
- # 1. Konfiguracja CMake tak jak w Archu (użycie systemowych abseil i protobuf)
27
+ # 1. Konfiguracja CMake z wymuszeniem użycia systemowego Abseil oraz shared libs
29
28
cmake -B build -G Ninja \
30
29
-DCMAKE_BUILD_TYPE=Release \
31
30
-DCMAKE_INSTALL_PREFIX=/usr \
31
+ -DBUILD_SHARED_LIBS=ON \
32
32
-Dprotobuf_BUILD_TESTS=OFF \
33
- -Dprotobuf_ABSL_PROVIDER=package \
34
- -Dprotobuf_BUILD_PROTOC_BINARIES=OFF
33
+ -Dprotobuf_BUILD_PROTOC_BINARIES=OFF \
34
+ -Dprotobuf_ABSL_PROVIDER=package
35
35
36
36
cmake --build build
37
37
38
- # 2. Budowanie paczki Pythonowej ze skompilowanymi modułami C++
38
+ # 2. Wygenerowanie i budowanie paczki dla Pythona
39
39
cd python
40
40
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
41
41
python -m build --wheel --no-isolation