talimat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Tanım: Qt ile yazılmış 2D CAD paketi
  2. # URL: http://www.qcad.org
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: qt5 xorg-glu
  5. # Grup: tasarım
  6. isim=qcad
  7. surum=3.21.2.6
  8. devir=1
  9. kaynak=(https://github.com/qcad/qcad/archive/v${surum}.tar.gz::$isim-$surum.tar.gz)
  10. derle() {
  11. cd qcad-$surum
  12. sed -e 's|$${QT_VERSION}|5.5.0|g' \
  13. -i src/3rdparty/3rdparty.pro # Don't require specific Qt version
  14. qmake-qt5 qcad.pro
  15. make
  16. # remove project files
  17. find . \( -name '*.pri' -or -name '.pro' -or -name '*.ts' \) -delete
  18. find . \( -name 'Makefile' -name '.gitignore' \) -delete
  19. install -dm755 "$PKG"/usr/lib/qcad
  20. cp -r examples fonts libraries linetypes patterns scripts themes ts \
  21. "$PKG"/usr/lib/qcad
  22. cp release/{*.so,qcad-bin} "$PKG"/usr/lib/qcad
  23. # install man
  24. install -Dm644 qcad.1 "$PKG"/usr/share/man/man1/qcad.1
  25. # readme
  26. install -Dm644 readme.txt "$PKG"/usr/lib/qcad/readme.txt
  27. # qt
  28. cp -r plugins platforminputcontexts platforms xcbglintegrations \
  29. "$PKG"/usr/lib/qcad
  30. install -Dm644 scripts/qcad_icon.png "$PKG"/usr/share/pixmaps/qcad_icon.png
  31. install -Dm644 qcad.desktop "$PKG"/usr/share/applications/qcad.desktop
  32. install -dm755 "$PKG"/usr/bin
  33. echo -e '#!/bin/sh\nLD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"/usr/lib/qcad" exec /usr/lib/qcad/qcad-bin "$@"' >"$PKG"/usr/bin/qcad
  34. chmod 0755 "$PKG"/usr/bin/qcad
  35. }