You are not logged in.

#1 2022-07-03 22:22:04

zwa
Member
Registered: 2005-12-05
Posts: 119

How would you edit this PKGBUILD to install latest version

Hello, as some of you may know FreeCAD has made available it's latest stable version to the public. How would you edit the PKGBUILD so it fetches and install the latest 0.20 version?

Thanks.

Offline

#2 2022-07-04 03:18:03

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: How would you edit this PKGBUILD to install latest version

diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index f32b6eb..cf94cf3 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -10,8 +10,8 @@
 # Contributor: gborzi
 
 pkgname=freecad
-pkgver=0.19.4
-pkgrel=5
+pkgver=0.20.0
+pkgrel=1
 pkgdesc='General purpose 3D CAD modeler'
 arch=(x86_64)
 url='https://freecadweb.org/'
@@ -25,24 +25,11 @@ makedepends=(adios2 boost cmake cgns coin eigen fmt gcc-fortran gendesk git
              postgresql-libs python-mpi4py python-shiboken2 shiboken2 swig
              utf8cpp cli11)
 source=(freecad.xml
-        freecad-boost.patch
-        freecad-vtk9.patch
-        "git+https://github.com/$pkgname/$pkgname#commit=476ecf091941bead59b14e44afa6064d5a66afa3") # tag: 0.19.4
+        "git+https://github.com/$pkgname/$pkgname#commit=68e337670e227889217652ddac593c93b5e8dc94") # tag: 0.20.0
 b2sums=('f5f295b9b5f268126feffbe3f3344c124faf5e2263f3f071348bd7f5d0bf2e30eb33fcf174d0ab76ad80ca7bd8ddea95ccbaf7f33f0896189ac78603fecb9485'
-        '6ec5dcead7f3438b387aeb3f608b910105d493aafcd47ae84715cdfe6f8651926056283ec4aeeab542b89df9fd9ffc2dbb74f5593e864acd23c8b352033ed1dc'
-        '242702f926101c57774046548068d17b22bd582ba1a1c45534ac8ceaa174c56277db80f32bed8ad1475b37006a1d777193b6c098ed8a733772152a898d1dd825'
         '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 $pkgname -p1 -i ../freecad-boost.patch
-  # Fix build with VTK 9 (thanks Fedora)
-  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
@@ -54,7 +41,7 @@ build() {
 
   cmake \
     -B build \
-    -D BUILD_ENABLE_CXX_STD=C++14 \
+    -D BUILD_ENABLE_CXX_STD=C++17 \
     -D BUILD_QT5=ON \
     -D CMAKE_BUILD_TYPE=Release \
     -D CMAKE_C_FLAGS="$CFLAGS -fPIC -w" \

Build tested only.

Offline

#3 2022-07-04 16:59:39

zwa
Member
Registered: 2005-12-05
Posts: 119

Re: How would you edit this PKGBUILD to install latest version

thx

Offline

#4 2022-07-05 15:23:15

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: How would you edit this PKGBUILD to install latest version

More comprehensive review and reworking of the PKGBUILD https://bugs.archlinux.org/task/75076

Offline

Board footer

Powered by FluxBB