[arch-commits] Commit in freecad/repos (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jun 8 17:59:22 UTC 2021
Date: Tuesday, June 8, 2021 @ 17:59:22
Author: foutrelis
Revision: 959823
archrelease: copy trunk to community-staging-x86_64
Added:
freecad/repos/community-staging-x86_64/
freecad/repos/community-staging-x86_64/PKGBUILD
(from rev 959822, freecad/trunk/PKGBUILD)
freecad/repos/community-staging-x86_64/freecad.xml
(from rev 959822, freecad/trunk/freecad.xml)
-------------+
PKGBUILD | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
freecad.xml | 9 ++++++
2 files changed, 93 insertions(+)
Copied: freecad/repos/community-staging-x86_64/PKGBUILD (from rev 959822, freecad/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-06-08 17:59:22 UTC (rev 959823)
@@ -0,0 +1,84 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: loqs <bugs-archlinux at entropy-collector.net>
+# Contributor: Gabriel Souza Franco <gabrielfrancosouza at gmail.com>
+# Contributor: Florian Pritz
+# Contributor: Jonas Heinrich <onny at project-insanity.org>
+# Contributor: Jordi De Groof <jordi.degroof at gmail.com>
+# Contributor: mickele
+# Contributor: manwithgrenade
+# Contributor: bricem13
+# Contributor: gborzi
+
+pkgname=freecad
+pkgver=0.19.2
+pkgrel=2
+_commit=7b5e18a0759de778b74d3a5c17eba9cb815035ac # tag: 0.19.2
+pkgdesc='General purpose 3D CAD modeler'
+arch=(x86_64)
+url='https://freecadweb.org/'
+license=(LGPL)
+depends=(boost-libs glew jsoncpp libspnav med netcdf opencascade openmpi
+ pyside2-tools python-matplotlib python-pivy python-ply python-pyside2
+ qt5-svg qt5-tools qt5-webkit qt5-x11extras qt5-xmlpatterns
+ xerces-c)
+makedepends=(boost cmake coin eigen gcc-fortran gendesk git ninja pyside2
+ python-shiboken2 shiboken2 swig)
+source=("git+https://github.com/FreeCAD/FreeCAD#commit=$_commit" freecad.xml)
+b2sums=('SKIP'
+ 'f5f295b9b5f268126feffbe3f3344c124faf5e2263f3f071348bd7f5d0bf2e30eb33fcf174d0ab76ad80ca7bd8ddea95ccbaf7f33f0896189ac78603fecb9485')
+
+prepare() {
+ cd FreeCAD/src
+ gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name FreeCAD \
+ --mimetypes='application/x-extension-fcstd' --startupnotify=true
+}
+
+build() {
+ # OpenCascade requires that /bin comes before /usr/bin in $PATH
+ export PATH="/usr/bin:$PATH"
+
+ mkdir -p build
+ cd build
+ cmake ../FreeCAD \
+ -D BUILD_ENABLE_CXX_STD=C++14 \
+ -D BUILD_QT5=ON \
+ -D CMAKE_BUILD_TYPE=Release \
+ -D CMAKE_C_FLAGS="$CFLAGS -fPIC -w" \
+ -D CMAKE_CXX_FLAGS="$CXXFLAGS -fPIC -w" \
+ -D CMAKE_INSTALL_DATADIR=/usr/share/freecad \
+ -D CMAKE_INSTALL_DOCDIR=/usr/share/freecad/doc \
+ -D CMAKE_INSTALL_PREFIX=/usr/lib/freecad \
+ -D FREECAD_USE_EXTERNAL_PIVY=ON \
+ -D FREECAD_USE_OCC_VARIANT='Official Version' \
+ -D FREECAD_USE_QT_FILEDIALOG=ON \
+ -D PYTHON_EXECUTABLE=/usr/bin/python \
+ -G Ninja
+ ninja
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C build install
+
+ # Package desktop shortcut
+ install -Dm644 FreeCAD/src/freecad.desktop \
+ "$pkgdir/usr/share/applications/freecad.desktop"
+
+ # Package MIME info
+ install -Dm644 freecad.xml "$pkgdir/usr/share/mime/packages/freecad.xml"
+
+ # Package icons
+ cd FreeCAD/src/Gui/Icons
+ 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"
+ done
+ install -Dm644 freecad.svg \
+ "$pkgdir/usr/share/icons/hicolor/scalable/apps/freecad.svg"
+
+ # Package symlinks in /usr/bin
+ install -d "$pkgdir/usr/bin"
+ ln -sf /usr/lib/freecad/bin/FreeCAD "$pkgdir/usr/bin/freecad"
+ ln -sf /usr/lib/freecad/bin/FreeCAD "$pkgdir/usr/bin/FreeCAD"
+ ln -sf /usr/lib/freecad/bin/FreeCADCmd "$pkgdir/usr/bin/freecadcmd"
+ ln -sf /usr/lib/freecad/bin/FreeCADCmd "$pkgdir/usr/bin/FreeCADCmd"
+}
Copied: freecad/repos/community-staging-x86_64/freecad.xml (from rev 959822, freecad/trunk/freecad.xml)
===================================================================
--- community-staging-x86_64/freecad.xml (rev 0)
+++ community-staging-x86_64/freecad.xml 2021-06-08 17:59:22 UTC (rev 959823)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-extension-fcstd">
+ <sub-class-of type="application/zip"/>
+ <comment>FreeCAD document</comment>
+ <glob pattern="*.fcstd"/>
+ <icon name="freecad"/>
+ </mime-type>
+</mime-info>
More information about the arch-commits
mailing list