re-do build. tested working with opencasacade 7.5
This commit is contained in:
parent
2a48acc31b
commit
98256b0b94
2 changed files with 67 additions and 48 deletions
30
.SRCINFO
30
.SRCINFO
|
@ -1,41 +1,41 @@
|
||||||
pkgbase = freecad-git
|
pkgbase = freecad-git
|
||||||
pkgdesc = A general purpose 3D CAD modeler - git checkout
|
pkgdesc = A general purpose 3D CAD modeler - git checkout
|
||||||
pkgver = 0.18.r4841.ga2aab9d17f
|
pkgver = 0.18.r6973.gc4d42a1f74
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
epoch = 0
|
epoch = 0
|
||||||
url = https://www.freecadweb.org/
|
url = https://www.freecadweb.org/
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = LGPL
|
license = LGPL
|
||||||
makedepends = boost
|
makedepends = boost
|
||||||
makedepends = cmake
|
makedepends = cmake
|
||||||
|
makedepends = coin
|
||||||
makedepends = eigen
|
makedepends = eigen
|
||||||
makedepends = git
|
|
||||||
makedepends = gcc-fortran
|
makedepends = gcc-fortran
|
||||||
makedepends = pyside2-tools
|
makedepends = gendesk
|
||||||
|
makedepends = git
|
||||||
|
makedepends = ninja
|
||||||
|
makedepends = pyside2
|
||||||
|
makedepends = python-shiboken2
|
||||||
|
makedepends = shiboken2
|
||||||
makedepends = swig
|
makedepends = swig
|
||||||
makedepends = qt5-tools
|
|
||||||
depends = boost-libs
|
depends = boost-libs
|
||||||
depends = curl
|
|
||||||
depends = desktop-file-utils
|
|
||||||
depends = glew
|
depends = glew
|
||||||
depends = hicolor-icon-theme
|
|
||||||
depends = jsoncpp
|
depends = jsoncpp
|
||||||
depends = libspnav
|
depends = libspnav
|
||||||
depends = med
|
depends = med
|
||||||
|
depends = netcdf
|
||||||
depends = opencascade
|
depends = opencascade
|
||||||
depends = openmpi
|
depends = openmpi
|
||||||
depends = shiboken2
|
|
||||||
depends = xerces-c
|
|
||||||
depends = pyside2
|
|
||||||
depends = pyside2-tools
|
depends = pyside2-tools
|
||||||
depends = python-matplotlib
|
depends = python-matplotlib
|
||||||
depends = python-netcdf4
|
|
||||||
depends = python-pivy
|
depends = python-pivy
|
||||||
|
depends = python-pyside2
|
||||||
depends = qt5-svg
|
depends = qt5-svg
|
||||||
|
depends = qt5-tools
|
||||||
depends = qt5-webkit
|
depends = qt5-webkit
|
||||||
depends = qt5-webengine
|
depends = qt5-x11extras
|
||||||
depends = qt5-base
|
depends = shared-mime-info
|
||||||
optdepends = pycollada: Create, edit and load COLLADA documents.
|
depends = xerces-c
|
||||||
provides = freecad
|
provides = freecad
|
||||||
conflicts = freecad
|
conflicts = freecad
|
||||||
conflicts = freecad-appimage
|
conflicts = freecad-appimage
|
||||||
|
|
85
PKGBUILD
85
PKGBUILD
|
@ -2,20 +2,18 @@
|
||||||
# Maintainer: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
|
# Maintainer: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
|
||||||
|
|
||||||
pkgname=freecad-git
|
pkgname=freecad-git
|
||||||
pkgver=0.18.r4841.ga2aab9d17f
|
pkgver=0.18.r6973.gc4d42a1f74
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
epoch=0
|
epoch=0
|
||||||
pkgdesc='A general purpose 3D CAD modeler - git checkout'
|
pkgdesc='A general purpose 3D CAD modeler - git checkout'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='https://www.freecadweb.org/'
|
url='https://www.freecadweb.org/'
|
||||||
license=('LGPL')
|
license=('LGPL')
|
||||||
depends=('boost-libs' 'curl' 'desktop-file-utils' 'glew' 'hicolor-icon-theme'
|
depends=(boost-libs glew jsoncpp libspnav med netcdf opencascade openmpi
|
||||||
'jsoncpp' 'libspnav' 'med' 'opencascade' 'openmpi' 'shiboken2' 'xerces-c'
|
pyside2-tools python-matplotlib python-pivy python-pyside2 qt5-svg
|
||||||
'pyside2' 'pyside2-tools' 'python-matplotlib' 'python-netcdf4' 'python-pivy'
|
qt5-tools qt5-webkit qt5-x11extras shared-mime-info xerces-c)
|
||||||
'qt5-svg' 'qt5-webkit' 'qt5-webengine' 'qt5-base')
|
makedepends=(boost cmake coin eigen gcc-fortran gendesk git ninja pyside2
|
||||||
makedepends=('boost' 'cmake' 'eigen' 'git' 'gcc-fortran'
|
python-shiboken2 shiboken2 swig)
|
||||||
'pyside2-tools' 'swig' 'qt5-tools')
|
|
||||||
optdepends=('pycollada: Create, edit and load COLLADA documents.')
|
|
||||||
provides=('freecad')
|
provides=('freecad')
|
||||||
conflicts=('freecad' 'freecad-appimage' 'freecad-appimage-git')
|
conflicts=('freecad' 'freecad-appimage' 'freecad-appimage-git')
|
||||||
source=("git+https://github.com/FreeCAD/FreeCAD.git")
|
source=("git+https://github.com/FreeCAD/FreeCAD.git")
|
||||||
|
@ -34,35 +32,56 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/FreeCAD"
|
# OpenCascade requires that /bin comes before /usr/bin in $PATH
|
||||||
|
export PATH="/usr/bin:$PATH"
|
||||||
|
|
||||||
cmake \
|
mkdir -p build
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
cd build
|
||||||
-DCMAKE_INSTALL_PREFIX="/usr/lib/freecad" \
|
cmake -Wno-dev ../FreeCAD \
|
||||||
-DCMAKE_INSTALL_DATAROOTDIR="/usr/share" \
|
-D BUILD_QT5=ON \
|
||||||
-DCMAKE_INSTALL_DOCDIR="/usr/share/freecad/doc" \
|
-D CMAKE_BUILD_TYPE=Release \
|
||||||
-DFREECAD_USE_OCC_VARIANT="Official Version" \
|
-D CMAKE_C_FLAGS="$CFLAGS -fPIC -w" \
|
||||||
-DBUILD_QT5=ON \
|
-D CMAKE_CXX_FLAGS="$CXXFLAGS -fPIC -w" \
|
||||||
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
|
-D CMAKE_INSTALL_DATADIR="/usr/share/freecad" \
|
||||||
.
|
-D CMAKE_INSTALL_DOCDIR="/usr/share/freecad/doc" \
|
||||||
make
|
-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() {
|
package() {
|
||||||
cd "${srcdir}/FreeCAD"
|
DESTDIR="$pkgdir" ninja -C build install
|
||||||
|
|
||||||
make DESTDIR="${pkgdir}" install
|
# Create desktop shortcut
|
||||||
|
gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name FreeCAD \
|
||||||
|
--mimetypes='application/x-extension-fcstd' --startupnotify=true
|
||||||
|
|
||||||
local bin="FreeCAD"
|
# Package desktop shortcut
|
||||||
local bin_cmd="FreeCADCmd"
|
install -Dm644 freecad.desktop \
|
||||||
# Symlink binaries to /usr/bin.
|
"$pkgdir/usr/share/applications/freecad.desktop"
|
||||||
mkdir -p "${pkgdir}/usr/bin"
|
|
||||||
ln -s "/usr/lib/freecad/bin/${bin}" "${pkgdir}/usr/bin/${bin}"
|
|
||||||
ln -s "/usr/lib/freecad/bin/${bin_cmd}" "${pkgdir}/usr/bin/${bin_cmd}"
|
|
||||||
# Lowercase aliases for convenience.
|
|
||||||
ln -s "/usr/bin/${bin}" "${pkgdir}/usr/bin/${bin,,}"
|
|
||||||
ln -s "/usr/bin/${bin_cmd}" "${pkgdir}/usr/bin/${bin_cmd,,}"
|
|
||||||
|
|
||||||
# do we actually need this line?
|
# Package MIME info
|
||||||
echo "Path=/usr/lib/freecad" >> "${pkgdir}/usr/share/applications/org.freecadweb.FreeCAD.desktop"
|
#install -Dm644 freecad.xml "$pkgdir/usr/share/mime/packages/freecad.xml"
|
||||||
|
|
||||||
|
cd FreeCAD/src/Gui/Icons
|
||||||
|
|
||||||
|
# Package 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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue