← recipes

Commit c75067e

0
plików
+0
dodanych
-0
usuniętych
@@ -13,95 +13,51 @@ source:
13 13 - 'https://github.com/google/googletest/archive/refs/tags/v${pkgver}.tar.gz'
14 14 sha256sums:
15 15 - SKIP
16 -footprint_gtest_devel: "drwxr-xr-x\troot/root\tusr/include/\ndrwxr-xr-x\troot/root\tusr/include/gmock/\n-rw-r--r--\troot/root\t\
17 - usr/include/gmock/gmock-actions.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-cardinalities.h\n-rw-r--r--\troot/root\t\
18 - usr/include/gmock/gmock-function-mocker.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-matchers.h\n-rw-r--r--\troot/root\t\
19 - usr/include/gmock/gmock-more-actions.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-more-matchers.h\n-rw-r--r--\troot/root\t\
20 - usr/include/gmock/gmock-nice-strict.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-spec-builders.h\n-rw-r--r--\troot/root\t\
21 - usr/include/gmock/gmock.h\ndrwxr-xr-x\troot/root\tusr/include/gmock/internal/\ndrwxr-xr-x\troot/root\tusr/include/gmock/internal/custom/\n\
22 - -rw-r--r--\troot/root\tusr/include/gmock/internal/custom/README.md\n-rw-r--r--\troot/root\tusr/include/gmock/internal/custom/gmock-generated-actions.h\n\
23 - -rw-r--r--\troot/root\tusr/include/gmock/internal/custom/gmock-matchers.h\n-rw-r--r--\troot/root\tusr/include/gmock/internal/custom/gmock-port.h\n\
24 - -rw-r--r--\troot/root\tusr/include/gmock/internal/gmock-internal-utils.h\n-rw-r--r--\troot/root\tusr/include/gmock/internal/gmock-port.h\n\
25 - -rw-r--r--\troot/root\tusr/include/gmock/internal/gmock-pp.h\ndrwxr-xr-x\troot/root\tusr/include/gtest/\n-rw-r--r--\troot/root\t\
26 - usr/include/gtest/gtest-assertion-result.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-death-test.h\n-rw-r--r--\troot/root\t\
27 - usr/include/gtest/gtest-matchers.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-message.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-param-test.h\n\
28 - -rw-r--r--\troot/root\tusr/include/gtest/gtest-printers.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-spi.h\n-rw-r--r--\t\
29 - root/root\tusr/include/gtest/gtest-test-part.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-typed-test.h\n-rw-r--r--\t\
30 - root/root\tusr/include/gtest/gtest.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest_pred_impl.h\n-rw-r--r--\troot/root\t\
31 - usr/include/gtest/gtest_prod.h\ndrwxr-xr-x\troot/root\tusr/include/gtest/internal/\ndrwxr-xr-x\troot/root\tusr/include/gtest/internal/custom/\n\
32 - -rw-r--r--\troot/root\tusr/include/gtest/internal/custom/README.md\n-rw-r--r--\troot/root\tusr/include/gtest/internal/custom/gtest-port.h\n\
33 - -rw-r--r--\troot/root\tusr/include/gtest/internal/custom/gtest-printers.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/custom/gtest.h\n\
34 - -rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-death-test-internal.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-filepath.h\n\
35 - -rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-internal.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-param-util.h\n\
36 - -rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-port-arch.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-port.h\n\
37 - -rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-string.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-type-util.h\n\
38 - drwxr-xr-x\troot/root\tusr/lib/pkgconfig/\n-rw-r--r--\troot/root\tusr/lib/pkgconfig/gmock.pc\n-rw-r--r--\troot/root\tusr/lib/pkgconfig/gmock_main.pc\n\
39 - -rw-r--r--\troot/root\tusr/lib/pkgconfig/gtest.pc\n-rw-r--r--\troot/root\tusr/lib/pkgconfig/gtest_main.pc\n"
40 -footprint_gtest_doc: "drwxr-xr-x\troot/root\tusr/share/doc/\ndrwxr-xr-x\troot/root\tusr/share/doc/gtest-1.17.0/\n-rw-r--r--\t\
41 - root/root\tusr/share/doc/gtest-1.17.0/CONTRIBUTORS\n-rw-r--r--\troot/root\tusr/share/doc/gtest-1.17.0/README.md\n"
42 -footprint: "drwxr-xr-x\troot/root\tusr/\ndrwxr-xr-x\troot/root\tusr/lib/\ndrwxr-xr-x\troot/root\tusr/lib/cmake/\ndrwxr-xr-x\t\
43 - root/root\tusr/lib/cmake/GTest/\n-rw-r--r--\troot/root\tusr/lib/cmake/GTest/GTestConfig.cmake\n-rw-r--r--\troot/root\tusr/lib/cmake/GTest/GTestConfigVersion.cmake\n\
44 - -rw-r--r--\troot/root\tusr/lib/cmake/GTest/GTestTargets-noconfig.cmake\n-rw-r--r--\troot/root\tusr/lib/cmake/GTest/GTestTargets.cmake\n\
45 - lrwxrwxrwx\troot/root\tusr/lib/libgmock.so -> libgmock.so.1.17.0\n-rwxr-xr-x\troot/root\tusr/lib/libgmock.so.1.17.0\nlrwxrwxrwx\t\
46 - root/root\tusr/lib/libgmock_main.so -> libgmock_main.so.1.17.0\n-rwxr-xr-x\troot/root\tusr/lib/libgmock_main.so.1.17.0\n\
47 - lrwxrwxrwx\troot/root\tusr/lib/libgtest.so -> libgtest.so.1.17.0\n-rwxr-xr-x\troot/root\tusr/lib/libgtest.so.1.17.0\nlrwxrwxrwx\t\
48 - root/root\tusr/lib/libgtest_main.so -> libgtest_main.so.1.17.0\n-rwxr-xr-x\troot/root\tusr/lib/libgtest_main.so.1.17.0\n\
49 - drwxr-xr-x\troot/root\tusr/share/\ndrwxr-xr-x\troot/root\tusr/share/licenses/\ndrwxr-xr-x\troot/root\tusr/share/licenses/gtest-1.17.0/\n\
50 - -rw-r--r--\troot/root\tusr/share/licenses/gtest-1.17.0/LICENSE\ndrwxr-xr-x\troot/root\tusr/src/\ndrwxr-xr-x\troot/root\t\
51 - usr/src/gmock/\n-rw-r--r--\troot/root\tusr/src/gmock/CMakeLists.txt\ndrwxr-xr-x\troot/root\tusr/src/gmock/cmake/\n-rw-r--r--\t\
52 - root/root\tusr/src/gmock/cmake/gmock.pc.in\n-rw-r--r--\troot/root\tusr/src/gmock/cmake/gmock_main.pc.in\ndrwxr-xr-x\troot/root\t\
53 - usr/src/gmock/src/\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock-all.cc\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock-cardinalities.cc\n\
54 - -rw-r--r--\troot/root\tusr/src/gmock/src/gmock-internal-utils.cc\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock-matchers.cc\n\
55 - -rw-r--r--\troot/root\tusr/src/gmock/src/gmock-spec-builders.cc\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock.cc\n-rw-r--r--\t\
56 - root/root\tusr/src/gmock/src/gmock_main.cc\ndrwxr-xr-x\troot/root\tusr/src/googletest/\n-rw-r--r--\troot/root\tusr/src/googletest/CMakeLists.txt\n\
57 - drwxr-xr-x\troot/root\tusr/src/googletest/cmake/\n-rw-r--r--\troot/root\tusr/src/googletest/cmake/Config.cmake.in\n-rw-r--r--\t\
58 - root/root\tusr/src/googletest/cmake/gtest.pc.in\n-rw-r--r--\troot/root\tusr/src/googletest/cmake/gtest_main.pc.in\n-rw-r--r--\t\
59 - root/root\tusr/src/googletest/cmake/internal_utils.cmake\n-rw-r--r--\troot/root\tusr/src/googletest/cmake/libgtest.la.in\n\
60 - drwxr-xr-x\troot/root\tusr/src/googletest/src/\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-all.cc\n-rw-r--r--\t\
61 - root/root\tusr/src/googletest/src/gtest-assertion-result.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-death-test.cc\n\
62 - -rw-r--r--\troot/root\tusr/src/googletest/src/gtest-filepath.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-internal-inl.h\n\
63 - -rw-r--r--\troot/root\tusr/src/googletest/src/gtest-matchers.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-port.cc\n\
64 - -rw-r--r--\troot/root\tusr/src/googletest/src/gtest-printers.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-test-part.cc\n\
65 - -rw-r--r--\troot/root\tusr/src/googletest/src/gtest-typed-test.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest.cc\n\
66 - -rw-r--r--\troot/root\tusr/src/googletest/src/gtest_main.cc\nlrwxrwxrwx\troot/root\tusr/src/gtest -> googletest\n"
16 +
17 +footprint_gtest_devel: "drwxr-xr-x\troot/root\tusr/include/\ndrwxr-xr-x\troot/root\tusr/include/gmock/\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-actions.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-cardinalities.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-function-mocker.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-matchers.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-more-actions.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-more-matchers.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-nice-strict.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock-spec-builders.h\n-rw-r--r--\troot/root\tusr/include/gmock/gmock.h\ndrwxr-xr-x\troot/root\tusr/include/gmock/internal/\ndrwxr-xr-x\troot/root\tusr/include/gmock/internal/custom/\n-rw-r--r--\troot/root\tusr/include/gmock/internal/custom/README.md\n-rw-r--r--\troot/root\tusr/include/gmock/internal/custom/gmock-generated-actions.h\n-rw-r--r--\troot/root\tusr/include/gmock/internal/custom/gmock-matchers.h\n-rw-r--r--\troot/root\tusr/include/gmock/internal/custom/gmock-port.h\n-rw-r--r--\troot/root\tusr/include/gmock/internal/gmock-internal-utils.h\n-rw-r--r--\troot/root\tusr/include/gmock/internal/gmock-port.h\n-rw-r--r--\troot/root\tusr/include/gmock/internal/gmock-pp.h\ndrwxr-xr-x\troot/root\tusr/include/gtest/\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-assertion-result.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-death-test.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-matchers.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-message.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-param-test.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-printers.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-spi.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-test-part.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest-typed-test.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest_pred_impl.h\n-rw-r--r--\troot/root\tusr/include/gtest/gtest_prod.h\ndrwxr-xr-x\troot/root\tusr/include/gtest/internal/\ndrwxr-xr-x\troot/root\tusr/include/gtest/internal/custom/\n-rw-r--r--\troot/root\tusr/include/gtest/internal/custom/README.md\n-rw-r--r--\troot/root\tusr/include/gtest/internal/custom/gtest-port.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/custom/gtest-printers.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/custom/gtest.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-death-test-internal.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-filepath.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-internal.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-param-util.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-port-arch.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-port.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-string.h\n-rw-r--r--\troot/root\tusr/include/gtest/internal/gtest-type-util.h\ndrwxr-xr-x\troot/root\tusr/lib/pkgconfig/\n-rw-r--r--\troot/root\tusr/lib/pkgconfig/gmock.pc\n-rw-r--r--\troot/root\tusr/lib/pkgconfig/gmock_main.pc\n-rw-r--r--\troot/root\tusr/lib/pkgconfig/gtest.pc\n-rw-r--r--\troot/root\tusr/lib/pkgconfig/gtest_main.pc\n"
18 +footprint_gtest_doc: "drwxr-xr-x\troot/root\tusr/share/doc/\ndrwxr-xr-x\troot/root\tusr/share/doc/gtest-1.18.0/\n-rw-r--r--\troot/root\tusr/share/doc/gtest-1.18.0/CONTRIBUTORS\n-rw-r--r--\troot/root\tusr/share/doc/gtest-1.18.0/README.md\n"
19 +footprint: "drwxr-xr-x\troot/root\tusr/\ndrwxr-xr-x\troot/root\tusr/lib/\ndrwxr-xr-x\troot/root\tusr/lib/cmake/\ndrwxr-xr-x\troot/root\tusr/lib/cmake/GTest/\n-rw-r--r--\troot/root\tusr/lib/cmake/GTest/GTestConfig.cmake\n-rw-r--r--\troot/root\tusr/lib/cmake/GTest/GTestConfigVersion.cmake\n-rw-r--r--\troot/root\tusr/lib/cmake/GTest/GTestTargets-noconfig.cmake\n-rw-r--r--\troot/root\tusr/lib/cmake/GTest/GTestTargets.cmake\n-rw-r--r--\troot/root\tusr/lib/libgmock.so\n-rw-r--r--\troot/root\tusr/lib/libgmock_main.so\n-rw-r--r--\troot/root\tusr/lib/libgtest.so\n-rw-r--r--\troot/root\tusr/lib/libgtest_main.so\ndrwxr-xr-x\troot/root\tusr/share/\ndrwxr-xr-x\troot/root\tusr/share/licenses/\ndrwxr-xr-x\troot/root\tusr/share/licenses/gtest-1.18.0/\n-rw-r--r--\troot/root\tusr/share/licenses/gtest-1.18.0/LICENSE\ndrwxr-xr-x\troot/root\tusr/src/\ndrwxr-xr-x\troot/root\tusr/src/gmock/\n-rw-r--r--\troot/root\tusr/src/gmock/CMakeLists.txt\ndrwxr-xr-x\troot/root\tusr/src/gmock/cmake/\n-rw-r--r--\troot/root\tusr/src/gmock/cmake/gmock.pc.in\n-rw-r--r--\troot/root\tusr/src/gmock/cmake/gmock_main.pc.in\ndrwxr-xr-x\troot/root\tusr/src/gmock/src/\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock-all.cc\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock-cardinalities.cc\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock-internal-utils.cc\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock-matchers.cc\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock-spec-builders.cc\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock.cc\n-rw-r--r--\troot/root\tusr/src/gmock/src/gmock_main.cc\ndrwxr-xr-x\troot/root\tusr/src/googletest/\n-rw-r--r--\troot/root\tusr/src/googletest/CMakeLists.txt\ndrwxr-xr-x\troot/root\tusr/src/googletest/cmake/\n-rw-r--r--\troot/root\tusr/src/googletest/cmake/Config.cmake.in\n-rw-r--r--\troot/root\tusr/src/googletest/cmake/gtest.pc.in\n-rw-r--r--\troot/root\tusr/src/googletest/cmake/gtest_main.pc.in\n-rw-r--r--\troot/root\tusr/src/googletest/cmake/internal_utils.cmake\n-rw-r--r--\troot/root\tusr/src/googletest/cmake/libgtest.la.in\ndrwxr-xr-x\troot/root\tusr/src/googletest/src/\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-all.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-assertion-result.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-death-test.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-filepath.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-internal-inl.h\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-matchers.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-port.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-printers.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-test-part.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest-typed-test.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest.cc\n-rw-r--r--\troot/root\tusr/src/googletest/src/gtest_main.cc\nlrwxrwxrwx\troot/root\tusr/src/gtest -> googletest\n"
20 +
67 21 build: |
68 22 cd googletest-${pkgver}
69 23
70 - # fixup version as they are never correct
24 + # Naprawa wersji w plikach CMake
71 25 sed -E "s|(GOOGLETEST_VERSION) [0-9\\.]+|\\1 ${pkgver}|" -i CMakeLists.txt
26 +
72 27 mkdir build && cd build
73 28
74 29 cmake -DCMAKE_INSTALL_PREFIX=/usr \
75 30 -DCMAKE_INSTALL_LIBDIR=lib \
76 31 -DBUILD_SHARED_LIBS=ON \
77 - -Dgtest_build_tests=ON \
32 + -Dgtest_build_tests=OFF \
78 33 -DPYTHON_EXECUTABLE=$(which python3) \
79 - ../googletest-${pkgver}
34 + ..
80 35
81 36 cmake --build .
82 37
38 +package: |
39 + cd googletest-${pkgver}/build
40 +
83 41 DESTDIR="${PKGDIR}" cmake --build . --target install
84 42
85 - # Shouldn't be present
86 - find "${PKGDIR}" -name '*.pump' -printf 'Removing %P\n' -delete
43 + # Usuwanie niepotrzebnych plików
44 + find "${PKGDIR}" -name '*.pump' -delete
87 45
88 - cd ../googletest-${pkgver}
46 + cd ..
89 47 install -Dm 644 LICENSE -t "${PKGDIR}/usr/share/licenses/${pkgname}-${pkgver}"
90 48 install -Dm 644 README.md CONTRIBUTORS -t "${PKGDIR}/usr/share/doc/${pkgname}-${pkgver}"
91 49
92 - # Install some googletest files
50 + # Instalacja dodatkowych źródeł googletest
93 51 cd googletest
94 52 install -Dm 644 cmake/* -t "${PKGDIR}/usr/src/googletest/cmake"
95 53 install -Dm 644 src/* -t "${PKGDIR}/usr/src/googletest/src"
96 54 install -Dm 644 CMakeLists.txt -t "${PKGDIR}/usr/src/googletest"
97 - ln -sv googletest ${PKGDIR}/usr/src/gtest
55 + ln -sv googletest "${PKGDIR}/usr/src/gtest"
98 56
99 - # Install some gmock files
57 + # Instalacja dodatkowych źródeł gmock
100 58 cd ../googlemock
101 59 install -Dm 644 cmake/* -t "${PKGDIR}/usr/src/gmock/cmake"
102 60 install -Dm 644 src/* -t "${PKGDIR}/usr/src/gmock/src"
103 61 install -Dm 644 CMakeLists.txt -t "${PKGDIR}/usr/src/gmock"
104 62
105 - sed -i 's|src/||' "${PKGDIR}/usr/src/gmock/src/gmock-all.cc"
106 -package: |
107 - true
63 + sed -i 's|src/||' "${PKGDIR}/usr/src/gmock/src/gmock-all.cc"