talimat 695 B

123456789101112131415161718192021222324252627282930
  1. # Tanım: JSON C++ kütüphanesi
  2. # URL: http://jsoncpp.sourceforge.net/
  3. # Paketçi: milisarge
  4. # Gerekler: cmake
  5. # Grup: kütüphane
  6. isim=jsoncpp
  7. surum=1.8.4
  8. devir=1
  9. kaynak=(https://github.com/open-source-parsers/$isim/archive/$surum.tar.gz::${isim}-${surum}.tar.gz)
  10. derle() {
  11. cd ${isim}-${surum}
  12. mkdir -p build
  13. #python3 doxybuild.py --with-dot
  14. cd build
  15. cmake \
  16. -DCMAKE_INSTALL_PREFIX=/usr \
  17. -DCMAKE_INSTALL_LIBDIR=lib \
  18. -DCMAKE_BUILD_TYPE=Release \
  19. -DCMAKE_INSTALL_PREFIX=/usr \
  20. -DBUILD_SHARED_LIBS=ON \
  21. -DBUILD_STATIC_LIBS=ON \
  22. ..
  23. make
  24. cd ..
  25. make -C build DESTDIR="${PKG}" install
  26. install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${isim}"
  27. }