Commit c54f936
0
plików
+0
dodanych
-0
usuniętych
@@ -5,14 +5,18 @@ pkgdesc: 'Protocol Buffers implementation in C'
5
5
url: 'https://github.com/protobuf-c/protobuf-c'
6
6
arch: x86_64
7
7
license:
8
-- BSD
8
+- BSD-2-Clause
9
+
10
+depends:
11
+- protobuf
12
+- abseil-cpp
9
13
10
-depends: []
11
14
makedepends:
12
15
- protobuf
16
+- abseil-cpp
13
17
14
18
source:
15
-- 'https://github.com/protobuf-c/protobuf-c/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz'
19
+- "https://github.com/protobuf-c/protobuf-c/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
16
20
- 'protobuf-c-1.5.2-protobuf34_fix-1.patch'
17
21
18
22
sha256sums:
@@ -21,13 +25,24 @@ sha256sums:
21
25
22
26
build: |
23
27
cd ${pkgname}-${pkgver}
24
- patch -Np1 -i ../protobuf-c-1.5.2-protobuf34_fix-1.patch
25
28
26
- ./configure --prefix=/usr --disable-static
29
+ if [ -f ../protobuf-c-1.5.2-protobuf34_fix-1.patch ]; then
30
+ patch -Np1 -i ../protobuf-c-1.5.2-protobuf34_fix-1.patch
31
+ fi
32
+
33
+ # Wymuszenie C++20 dla nagłówków protobuf oraz flagi tolerancji dla GCC
34
+ export CXXFLAGS="${CXXFLAGS} -std=c++20"
35
+ export CFLAGS="${CFLAGS} -Wno-implicit-function-declaration -Wno-error=incompatible-pointer-types"
36
+
37
+ ./configure --prefix=/usr \
38
+ --sysconfdir=/etc \
39
+ --localstatedir=/var \
40
+ --disable-static
41
+
27
42
make
28
- make DESTDIR=${PKGDIR} install
43
+ make DESTDIR="${PKGDIR}" install
29
44
30
- install -Dm644 LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
45
+ install -Dm644 LICENSE "${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE"
31
46
32
47
package: |
33
- true
48
+ true