talimat 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Tanım: DWG/DXF dosyaları için ücretsiz CAD yazılımı.
  2. # URL: http://www.3ds.com/products/draftsight/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: alsa-lib desktop-file-utils glib gtk2 cups mariadb xorg-libsm xorg-libx11 xorg-libxext xorg-libxrender postgresql qt5 zlib
  5. # Grup: tasarım
  6. isim=draftsight
  7. surum=2018SP0
  8. devir=1
  9. kaynak=(http://dl-ak.solidworks.com/nonsecure/$isim/$surum/draftSight.deb)
  10. derle() {
  11. _pkgprefix='opt/dassault-systemes/DraftSight'
  12. ar x ${SRC}/draftSight.deb
  13. tar -xf data.tar.gz -C "${SRC}"
  14. mkdir -p $PKG/usr/bin
  15. echo "#!/bin/sh" > $PKG/usr/bin/$isim
  16. echo "env vblank_mode=0 /$_pkgprefix/Linux/DraftSight" >> $PKG/usr/bin/$isim
  17. chmod 755 $PKG/usr/bin/$isim
  18. mkdir -p $PKG/$_pkgprefix
  19. cd $SRC/$_pkgprefix
  20. install -Dm644 Eula/english/eula.htm $PKG/usr/share/licenses/$isim/LICENSE
  21. for size in "16x16" "32x32" "48x48" "64x64" "128x128"
  22. do
  23. install -Dm644 Resources/pixmaps/$size/program.png $PKG/usr/share/icons/hicolor/$size/apps/$isim.png
  24. install -Dm644 Resources/pixmaps/$size/file-dwg.png $PKG/usr/share/icons/hicolor/$size/mimetypes/file-dwg.png
  25. install -Dm644 Resources/pixmaps/$size/file-dxf.png $PKG/usr/share/icons/hicolor/$size/mimetypes/file-dxf.png
  26. install -Dm644 Resources/pixmaps/$size/file-dwt.png $PKG/usr/share/icons/hicolor/$size/mimetypes/file-dwt.png
  27. done
  28. install -Dm644 Resources/dassault-systemes_$isim-dwg.xml $PKG/usr/share/mime/application/dassault-systemes_$isim-dwg.xml
  29. install -Dm644 Resources/dassault-systemes_$isim-dxf.xml $PKG/usr/share/mime/application/dassault-systemes_$isim-dxf.xml
  30. install -Dm644 Resources/dassault-systemes_$isim-dwt.xml $PKG/usr/share/mime/application/dassault-systemes_$isim-dwt.xml
  31. # Başlatıcı
  32. mkdir -pv $PKG/usr/share/applications &&
  33. cat > $PKG/usr/share/applications/$isim.desktop << "EOF" &&
  34. [Desktop Entry]
  35. Type=Application
  36. Name=DraftSight
  37. Comment=DWG/DXF dosyaları için ücretsiz CAD yazılımı.
  38. Exec=env vblank_mode=0 /opt/dassault-systemes/DraftSight/Linux/DraftSight %U
  39. Icon=draftsight
  40. Terminal=false
  41. Categories=Graphics;2DGraphics;
  42. EOF
  43. # Install Draftsight's program files
  44. cp -pr $SRC/$_pkgprefix/* $PKG/$_pkgprefix/
  45. }