talimat 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Tanım: QCad topluluk baskısına dayalı 2D bir CAD çizim aracı
  2. # URL: http://www.librecad.org/
  3. # Paketçi: Oltulu
  4. # Gerekler: qt5 boost librsvg imagemagick
  5. # Grup: tasarım
  6. isim=librecad
  7. surum=2.1.3
  8. devir=1
  9. kaynak=(https://github.com/LibreCAD/LibreCAD/archive/${surum}.tar.gz::$isim.$surum.tar.gz)
  10. derle() {
  11. cd "${SRC}/LibreCAD-${surum}"
  12. # fix version string
  13. sed -i "/^SCMREVISION/c SCMREVISION=\"${surum}\"" librecad/src/src.pro
  14. qmake-qt5 librecad.pro
  15. # fix include path... this is an issue with gcc 6.1.1 and qmake-qt5...
  16. make qmake_all
  17. sed -i '/INCPATH/s|-isystem /usr/include ||' librecad/src/Makefile
  18. make
  19. # executables
  20. install -D -m0755 unix/librecad "${PKG}/usr/bin/librecad"
  21. install -D -m0755 unix/ttf2lff "${PKG}/usr/bin/ttf2lff"
  22. # desktop dosyası ve man sayfası
  23. install -D -m0644 desktop/librecad.desktop "${PKG}/usr/share/applications/librecad.desktop"
  24. install -D -m0644 desktop/librecad.1 "${PKG}/usr/share/man/man1/librecad.1"
  25. # belgeler
  26. install -D -m0644 librecad/support/doc/README "${PKG}/usr/share/doc/librecad/index.README"
  27. install -D -m0644 librecad/support/doc/index.html "${PKG}/usr/share/doc/librecad/index.html"
  28. install -D -m0644 librecad/support/doc/style.css "${PKG}/usr/share/doc/librecad/style.css"
  29. install -D -m0644 librecad/support/doc/img/librecadlogo.png "${PKG}/usr/share/doc/librecad/img/librecadlogo.png"
  30. # simgeler
  31. for SIZE in 16 24 32 48 64 96 128; do
  32. convert -scale ${SIZE} \
  33. desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg \
  34. ${SRC}/librecad.png
  35. install -D -m0644 ${SRC}/librecad.png "${PKG}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/librecad.png"
  36. done
  37. install -D -m0644 desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg "${PKG}/usr/share/icons/hicolor/scalable/apps/librecad.svg"
  38. # kaynaklar
  39. mkdir -p "${PKG}/usr/share/librecad/"
  40. cp -r unix/resources/{library,patterns,fonts,qm} "${PKG}/usr/share/librecad/"
  41. /usr/lib/qt5/bin/lrelease ${SRC}/LibreCAD-${surum}/librecad/ts/librecad_tr.ts -qm $PKG/usr/share/librecad/qm/librecad_tr.qm
  42. }