[arch-commits] Commit in freecad/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Sun Jun 12 16:22:51 UTC 2022


    Date: Sunday, June 12, 2022 @ 16:22:51
  Author: dvzrv
Revision: 1236984

upgpkg: freecad 0.19.4-3: Changed location for openmpi libraries

Modified:
  freecad/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-12 16:02:39 UTC (rev 1236983)
+++ PKGBUILD	2022-06-12 16:22:51 UTC (rev 1236984)
@@ -11,7 +11,7 @@
 
 pkgname=freecad
 pkgver=0.19.4
-pkgrel=2
+pkgrel=3
 pkgdesc='General purpose 3D CAD modeler'
 arch=(x86_64)
 url='https://freecadweb.org/'
@@ -27,7 +27,7 @@
 source=(freecad.xml
         freecad-boost.patch
         freecad-vtk9.patch
-        "git+https://github.com/FreeCAD/FreeCAD#commit=476ecf091941bead59b14e44afa6064d5a66afa3") # tag: 0.19.4
+        "git+https://github.com/$pkgname/$pkgname#commit=476ecf091941bead59b14e44afa6064d5a66afa3") # tag: 0.19.4
 b2sums=('f5f295b9b5f268126feffbe3f3344c124faf5e2263f3f071348bd7f5d0bf2e30eb33fcf174d0ab76ad80ca7bd8ddea95ccbaf7f33f0896189ac78603fecb9485'
         '6ec5dcead7f3438b387aeb3f608b910105d493aafcd47ae84715cdfe6f8651926056283ec4aeeab542b89df9fd9ffc2dbb74f5593e864acd23c8b352033ed1dc'
         '242702f926101c57774046548068d17b22bd582ba1a1c45534ac8ceaa174c56277db80f32bed8ad1475b37006a1d777193b6c098ed8a733772152a898d1dd825'
@@ -34,10 +34,15 @@
         'SKIP')
 
 prepare() {
+  (
+    cd $pkgname
+    # fix missing include for std::unique_ptr
+    git cherry-pick -n 4fea37b3bc5a3a9fce789dac6d2444f240bd3313
+  )
   # Fix Boost linking with VTK 9 (thanks Fedora)
-  patch -d FreeCAD -p1 -i ../freecad-boost.patch
+  patch -d $pkgname -p1 -i ../freecad-boost.patch
   # Fix build with VTK 9 (thanks Fedora)
-  patch -d FreeCAD -p1 -i ../freecad-vtk9.patch
+  patch -d $pkgname -p1 -i ../freecad-vtk9.patch
   # Generate desktop shortcut
   gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name FreeCAD \
     --mimetypes='application/x-extension-fcstd' --startupnotify=true
@@ -62,7 +67,7 @@
     -D FREECAD_USE_QT_FILEDIALOG=ON \
     -D PYTHON_EXECUTABLE=/usr/bin/python \
     -G Ninja \
-    -S FreeCAD
+    -S $pkgname
   ninja -C build
 }
 
@@ -70,15 +75,13 @@
   DESTDIR="$pkgdir" ninja -C build install
 
   # Desktop shortcut
-  install -Dm644 freecad.desktop \
-    "$pkgdir/usr/share/applications/freecad.desktop"
+  install -Dm644 $pkgname.desktop -t "$pkgdir/usr/share/applications/"
 
   # MIME info
-  install -Dm644 freecad.xml "$pkgdir/usr/share/mime/packages/freecad.xml"
+  install -Dm644 $pkgname.xml -t "$pkgdir/usr/share/mime/packages/"
 
   # Thumbnailer
-  install -Dm755 FreeCAD/src/Tools/freecad-thumbnailer \
-    "$pkgdir/usr/bin/freecad-thumbnailer"
+  install -Dm755 $pkgname/src/Tools/$pkgname-thumbnailer -t "$pkgdir/usr/bin/"
   install -Dm644 \
     "$pkgdir/usr/lib/freecad/share/thumbnailers/FreeCAD.thumbnailer" \
     "$pkgdir/usr/share/thumbnailers/FreeCAD.thumbnailer"
@@ -85,9 +88,8 @@
   rm -f "$pkgdir/usr/lib/freecad/share/thumbnailers/FreeCAD.thumbnailer"
 
   # Icons
-  cd FreeCAD/src/Gui/Icons
-  install -Dm644 freecad.svg \
-    "$pkgdir/usr/share/icons/hicolor/scalable/apps/freecad.svg"
+  cd $pkgname/src/Gui/Icons
+  install -Dm644 $pkgname.svg -t "$pkgdir/usr/share/icons/hicolor/scalable/apps/"
   for i in 16 32 48 64; do
     install -Dm644 "freecad-icon-$i.png" \
       "$pkgdir/usr/share/icons/hicolor/${i}x$i/apps/freecad.png"



More information about the arch-commits mailing list