talimat 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Tanım: QT Resim Gösterici
  2. # URL: https://nomacs.org/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: cmake qt5 exiv2 libraw opencv
  5. # Grup: tasarım
  6. isim=nomacs
  7. surum=3.8.0
  8. devir=1
  9. kaynak=(https://github.com/${isim}/${isim}/archive/${surum}.tar.gz::${isim}-${surum}.tar.gz
  10. https://github.com/${isim}/${isim}-plugins/archive/${surum}.tar.gz::${isim}-plugins-${surum}.tar.gz)
  11. derle() {
  12. # Yama Dosyası
  13. cat > $SRC/${isim}-no-coverage.patch << "EOF" &&
  14. --- nomacs-3.8.0/ImageLounge/CMakeLists.txt.orig 2017-11-14 08:43:20.157769041 +0000
  15. +++ nomacs-3.8.0/ImageLounge/CMakeLists.txt 2017-11-14 08:43:49.094497479 +0000
  16. @@ -22,12 +22,6 @@
  17. set(NOMACS_VERSION ${NOMACS_VERSION_MAJOR}.${NOMACS_VERSION_MINOR})
  18. set(NOMACS_FULL_VERSION ${NOMACS_VERSION}.${NOMACS_VERSION_PATCH})
  19. -# Codecov
  20. -if(CMAKE_COMPILER_IS_GNUCXX)
  21. - include("cmake/CodeCoverage.cmake")
  22. - setup_target_for_coverage(${PROJECT_NAME}_coverage tests coverage)
  23. -endif()
  24. -
  25. if(CMAKE_CL_64)
  26. SET(NMC_ARCHITECTURE "x64")
  27. else()
  28. EOF
  29. cd "${isim}-${surum}"
  30. # move plugins
  31. mv "${SRC}/${isim}-plugins-${surum}" "ImageLounge/plugins"
  32. # disable code coverage:
  33. # https://github.com/nomacs/nomacs/issues/170
  34. patch -p1 -i "../${isim}-no-coverage.patch"
  35. cmake ./ImageLounge -DCMAKE_INSTALL_PREFIX=/usr
  36. make
  37. make DESTDIR="${PKG}" install
  38. }