talimat 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. [paket]
  2. tanim = Google Mock - C ++ sahte sınıfları yazmak ve kullanmak için bir kitaplık
  3. paketci = Cihan_Alkan
  4. grup = kütüphane
  5. url = https://github.com/google/googletest
  6. [gerek]
  7. derleme =
  8. calisma =
  9. [kaynak]
  10. 1 = https://github.com/google/googletest/archive/release-${surum}.tar.gz
  11. [sha256]
  12. #1 = 7792b9e52560fbd3e10d75bfb5d138a20913a87771d676d296547f1b4ac09618
  13. [derle]
  14. betik = cmake -Hgoogletest-release-1.10.0 -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_SHARED_LIBS=ON -Dgtest_build_tests=ON
  15. betik = cmake --build build
  16. [pakur]
  17. betik = DESTDIR="${PKG}" cmake --build build --target install
  18. betik = find "${PKG}" -name '*.pump' -printf 'Removing %P\n' -delete
  19. betik = mkdir -p gmock/{include,lib/pkgconfig}
  20. betik = mv "${PKG}"/usr/include/gmock gmock/include/
  21. betik = mv "${PKG}"/usr/lib/libgmock* gmock/lib/
  22. betik = mv "${PKG}"/usr/lib/pkgconfig/gmock* gmock/lib/pkgconfig/
  23. betik = cd googletest-release-${surum}/googletest
  24. betik = install -Dm 755 scripts/gtest-config.in -t "${PKG}/usr/bin"
  25. betik = install -Dm 644 cmake/* -t "${PKG}/usr/src/googletest/cmake"
  26. betik = install -Dm 644 src/* -t "${PKG}/usr/src/googletest/src"
  27. betik = install -Dm 644 CMakeLists.txt -t "${PKG}/usr/src/googletest"g