mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
Update freecad to 0.15.4671
This commit is contained in:
parent
d96042f8ec
commit
02a5d4e732
@ -1,93 +1,65 @@
|
|||||||
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
|
||||||
# Contributor: Jonas Heinrich <onny@project-insanity.org>
|
|
||||||
# Contributor: Jordi De Groof <jordi (dot) degroof (at) gmail (dot) com>
|
|
||||||
|
|
||||||
pkgname=freecad
|
pkgname=freecad
|
||||||
pkgver=0.14.3702
|
pkgver=0.15.4671
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc='A general purpose 3D CAD modeler'
|
pkgdesc='A general purpose 3D CAD modeler'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='http://www.freecadweb.org/wiki'
|
url='http://www.freecadweb.org/wiki'
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('boost-libs' 'curl' 'opencascade>=6.6.0' 'pivy-hg' 'python2-pyqt4' 'xerces-c' 'libspnav' 'shared-mime-info' 'hicolor-icon-theme' 'python2-shiboken'
|
depends=('boost-libs' 'curl' 'opencascade' 'pivy-hg' 'xerces-c' 'libspnav' 'shared-mime-info' 'hicolor-icon-theme' 'python2-matplotlib' 'python2-shiboken' 'python2-pyside-tools' 'pyside-tools-common' 'python2-pyqt4' 'qtwebkit')
|
||||||
'python2-pyside')
|
makedepends=('boost' 'eigen3' 'gcc-fortran' 'swig' 'xerces-c' 'desktop-file-utils' 'cmake' 'coin' 'zlib' 'glu')
|
||||||
makedepends=('boost' 'eigen3' 'gcc-fortran' 'swig' 'xerces-c' 'desktop-file-utils' 'zlib' 'cmake' 'coin>=3.1.3-2' 'glu')
|
|
||||||
options=(!libtool !makeflags)
|
options=(!libtool !makeflags)
|
||||||
install=freecad.install
|
install=freecad.install
|
||||||
source=("http://downloads.sourceforge.net/sourceforge/free-cad/freecad-${pkgver}.tar.gz"
|
source=("http://downloads.sourceforge.net/project/free-cad/FreeCAD%20Source/${pkgname}_${pkgver}.tar.gz"
|
||||||
"${pkgname}.desktop"
|
"${pkgname}.desktop"
|
||||||
"${pkgname}.xml"
|
"${pkgname}.xml")
|
||||||
md5sums=('234747bdff47a62fd10cb902f3dd772b'
|
sha512sums=('695081117b5511bbc0b7335b63a8760e164987a6dff2c5b0dc86b6b0a93bb7d7b83aa9f4fab1d66d7d2c917a42b0135af78553b463579873a1d1e52e3dd9aecb'
|
||||||
'493490db7844d7d5b9426fab8da5acea'
|
'a58dd5f6d8217b6633d5cc24a0b61954b1044d4156b25b78c00ea29f3ac9ca4932e9bde08bd11fc4327d76c7e82500cf3c2ddc934f426e970757cd200b070aec'
|
||||||
'f930c02689c0b2cc75b9dab833e46932'
|
'ac0dfe1b2c58335867e94d4ce86696763b6354dcdca68a653bf115b6ea562f0f8ff7d243d42d0c6fd6e758bd488d626e30cd917bb1b5c676c1f0cafdece005d6')
|
||||||
'c2f4154c8e4678825411de8e7fa54c6b'
|
|
||||||
'8aeceda60d5260d8c201201ac06e5335')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_installdir=/opt/$pkgname
|
|
||||||
# I prefer installing in opt because installing
|
|
||||||
# in /usr there are non standard dir.
|
|
||||||
# However if you prefer /usr uncomment the following line
|
|
||||||
# _installdir=/usr
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${srcdir}/freecad-${pkgver}/"
|
sed -i \
|
||||||
# compatibility issues with OCC-6.6
|
-e "46i\\\tModDir = '/usr/share/freecad/Mod'" \
|
||||||
for _FILE in $( grep -Rl "BRepTools::OuterShell" * )
|
-e "50i\\\tLibDir = '/usr/lib/freecad'" \
|
||||||
do
|
"${srcdir}/freecad-${pkgver}/src/App/FreeCADInit.py"
|
||||||
sed -e "s|BRepTools|BRepClass3d|g" -i "$_FILE"
|
|
||||||
done
|
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e 's|\bpyside-uic\b|python2-pyside-uic|' \
|
||||||
|
$srcdir/freecad-$pkgver/cMake/FindPySideTools.cmake
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/freecad-${pkgver}/"
|
cd "${srcdir}/freecad-${pkgver}/"
|
||||||
|
cmake \
|
||||||
mkdir -p build
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
cd build
|
-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
|
||||||
|
-DCMAKE_INSTALL_DOCDIR:PATH="share/freecad/doc" \
|
||||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=${_installdir} .. \
|
-DCMAKE_INSTALL_DATADIR:PATH="share/freecad" \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR:PATH="lib/freecad" \
|
||||||
-DOCC_INCLUDE_DIR:PATH=/opt/opencascade/inc/ \
|
-DOCC_INCLUDE_DIR:PATH=/opt/opencascade/inc/ \
|
||||||
-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2 \
|
-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2 \
|
||||||
-DFREECAD_USE_EXTERNAL_PIVY:BOOL=ON
|
-DFREECAD_USE_EXTERNAL_PIVY:BOOL=ON
|
||||||
|
|
||||||
# add these options to copmile without coin debian patch
|
|
||||||
# http://sourceforge.net/apps/mantisbt/free-cad/view.php?id=664
|
|
||||||
# -DCMAKE_C_FLAGS:STRING="$CFLAGS -fpermissive" \
|
|
||||||
# -DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS -fpermissive"
|
|
||||||
|
|
||||||
# Build main program
|
|
||||||
make
|
make
|
||||||
|
|
||||||
# Builds Qt plugin
|
|
||||||
# cd "${srcdir}/freecad-${pkgver}/src/Tools/plugins/widget/"
|
|
||||||
# qmake plugin.pro
|
|
||||||
# make
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/freecad-${pkgver}/build"
|
cd "${srcdir}/freecad-${pkgver}"
|
||||||
|
|
||||||
# Install main program
|
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
|
||||||
# Symlink to /usr/bin
|
# Symlink to /usr/bin
|
||||||
mkdir -p "${pkgdir}/usr/bin/"
|
ln -sf "FreeCAD" "${pkgdir}/usr/bin/freecad"
|
||||||
ln -sf "${_installdir}/bin/FreeCAD" "${pkgdir}/usr/bin/freecad"
|
ln -sf "FreeCADCmd" "${pkgdir}/usr/bin/freecadcmd"
|
||||||
ln -sf "${_installdir}/bin/FreeCADCmd" "${pkgdir}/usr/bin/freecadcmd"
|
|
||||||
|
|
||||||
# Installs Qt plugin
|
cp -ra "${pkgdir}/usr/Mod" "${pkgdir}/usr/share/freecad/"
|
||||||
# install -Dm755 ../src/Tools/plugins/widget/libFreeCAD_widgets.so "${pkgdir}/usr/lib/qt/plugins/designer/libFreeCAD_widgets.so"
|
rm -r "${pkgdir}/usr/Mod"
|
||||||
|
|
||||||
# Install pixmaps and desktop shortcut
|
# Install pixmaps and desktop shortcut
|
||||||
desktop-file-install \
|
desktop-file-install \
|
||||||
--dir="${pkgdir}/usr/share/applications" \
|
--dir="${pkgdir}/usr/share/applications" \
|
||||||
"${srcdir}/${pkgname}.desktop"
|
"${srcdir}/${pkgname}.desktop"
|
||||||
|
|
||||||
|
install -d ${pkgdir}/usr/share/pixmaps
|
||||||
|
cp ${pkgdir}/usr/share/freecad/freecad.svg ${pkgdir}/usr/share/pixmaps/freecad.svg
|
||||||
|
|
||||||
# Mime info
|
# Mime info
|
||||||
install -D -m644 "${srcdir}/${pkgname}.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
|
install -D -m644 "${srcdir}/${pkgname}.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
|
||||||
mkdir -p "${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/"
|
|
||||||
ln -s /usr/share/${pkgname}/freecad.xpm "${pkgdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-extension-fcstd.xpm"
|
|
||||||
}
|
}
|
@ -8,7 +8,7 @@ Exec=/usr/bin/freecad %F
|
|||||||
Path=/usr/lib/freecad
|
Path=/usr/lib/freecad
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Icon=/usr/share/freecad/freecad.xpm
|
Icon=freecad.svg
|
||||||
Categories=Application;Office;Engineering;
|
Categories=Application;Office;Engineering;
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
MimeType=application/x-extension-fcstd;
|
MimeType=application/x-extension-fcstd;
|
||||||
|
Loading…
Reference in New Issue
Block a user