git subrepo clone (merge) https://aur.archlinux.org/freecad-git
subrepo: subdir: "freecad-git" merged: "37f339e" upstream: origin: "https://aur.archlinux.org/freecad-git" branch: "master" commit: "37f339e" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
This commit is contained in:
parent
548a740806
commit
182d242ef0
50
freecad-git/.SRCINFO
Normal file
50
freecad-git/.SRCINFO
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
pkgbase = freecad-git
|
||||||
|
pkgdesc = A general purpose 3D CAD modeler - git checkout
|
||||||
|
pkgver = 0.19_pre.r4809.gefa6346e5f
|
||||||
|
pkgrel = 1
|
||||||
|
epoch = 0
|
||||||
|
url = https://www.freecadweb.org/
|
||||||
|
arch = x86_64
|
||||||
|
license = LGPL
|
||||||
|
makedepends = boost
|
||||||
|
makedepends = cmake
|
||||||
|
makedepends = coin
|
||||||
|
makedepends = eigen
|
||||||
|
makedepends = gcc-fortran
|
||||||
|
makedepends = gendesk
|
||||||
|
makedepends = git
|
||||||
|
makedepends = ninja
|
||||||
|
makedepends = pyside2
|
||||||
|
makedepends = python-shiboken2
|
||||||
|
makedepends = shiboken2
|
||||||
|
makedepends = swig
|
||||||
|
depends = boost-libs
|
||||||
|
depends = glew
|
||||||
|
depends = jsoncpp
|
||||||
|
depends = libspnav
|
||||||
|
depends = med
|
||||||
|
depends = netcdf
|
||||||
|
depends = opencascade
|
||||||
|
depends = openmpi
|
||||||
|
depends = pyside2-tools
|
||||||
|
depends = python-yaml
|
||||||
|
depends = python-matplotlib
|
||||||
|
depends = python-pivy
|
||||||
|
depends = python-ply
|
||||||
|
depends = python-pyside2
|
||||||
|
depends = qt5-svg
|
||||||
|
depends = qt5-tools
|
||||||
|
depends = qt5-webkit
|
||||||
|
depends = qt5-x11extras
|
||||||
|
depends = qt5-xmlpatterns
|
||||||
|
depends = shared-mime-info
|
||||||
|
depends = xerces-c
|
||||||
|
provides = freecad
|
||||||
|
conflicts = freecad
|
||||||
|
conflicts = freecad-appimage
|
||||||
|
conflicts = freecad-appimage-git
|
||||||
|
source = git+https://github.com/FreeCAD/FreeCAD.git
|
||||||
|
md5sums = SKIP
|
||||||
|
|
||||||
|
pkgname = freecad-git
|
||||||
|
|
5
freecad-git/.gitignore
vendored
Normal file
5
freecad-git/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
src/
|
||||||
|
pkg/
|
||||||
|
FreeCAD/
|
||||||
|
*.tar.xz
|
||||||
|
*.tar.gz
|
12
freecad-git/.gitrepo
Normal file
12
freecad-git/.gitrepo
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
; DO NOT EDIT (unless you know what you are doing)
|
||||||
|
;
|
||||||
|
; This subdirectory is a git "subrepo", and this file is maintained by the
|
||||||
|
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
|
||||||
|
;
|
||||||
|
[subrepo]
|
||||||
|
remote = https://aur.archlinux.org/freecad-git
|
||||||
|
branch = master
|
||||||
|
commit = 37f339e3823de2d8f5feb18e5ada2e02754b6014
|
||||||
|
parent = 548a740806caf1d3cf8d124e29a12da0a9cd36f9
|
||||||
|
method = merge
|
||||||
|
cmdver = 0.4.1
|
122
freecad-git/PKGBUILD
Normal file
122
freecad-git/PKGBUILD
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
# Maintainer: Grey Christoforo <first name at last name dot net>
|
||||||
|
# Maintainer: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
|
||||||
|
|
||||||
|
pkgname=freecad-git
|
||||||
|
pkgver=0.19_pre.r4809.gefa6346e5f
|
||||||
|
pkgrel=1
|
||||||
|
epoch=0
|
||||||
|
pkgdesc='A general purpose 3D CAD modeler - git checkout'
|
||||||
|
arch=('x86_64')
|
||||||
|
url='https://www.freecadweb.org/'
|
||||||
|
license=('LGPL')
|
||||||
|
depends=(
|
||||||
|
boost-libs
|
||||||
|
glew
|
||||||
|
jsoncpp
|
||||||
|
libspnav
|
||||||
|
med
|
||||||
|
netcdf
|
||||||
|
opencascade
|
||||||
|
openmpi
|
||||||
|
pyside2-tools
|
||||||
|
python-yaml
|
||||||
|
python-matplotlib
|
||||||
|
python-pivy
|
||||||
|
python-ply
|
||||||
|
python-pyside2
|
||||||
|
qt5-svg
|
||||||
|
qt5-tools
|
||||||
|
qt5-webkit
|
||||||
|
qt5-x11extras
|
||||||
|
qt5-xmlpatterns
|
||||||
|
shared-mime-info
|
||||||
|
xerces-c
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
boost
|
||||||
|
cmake
|
||||||
|
coin
|
||||||
|
eigen
|
||||||
|
gcc-fortran
|
||||||
|
gendesk
|
||||||
|
git
|
||||||
|
ninja
|
||||||
|
pyside2
|
||||||
|
python-shiboken2
|
||||||
|
shiboken2
|
||||||
|
swig
|
||||||
|
)
|
||||||
|
provides=('freecad')
|
||||||
|
conflicts=('freecad' 'freecad-appimage' 'freecad-appimage-git')
|
||||||
|
source=("git+https://github.com/FreeCAD/FreeCAD.git")
|
||||||
|
md5sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd FreeCAD
|
||||||
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd FreeCAD
|
||||||
|
# patch out a build error
|
||||||
|
#curl -L "https://github.com/FreeCAD/FreeCAD/pull/2842/commits/095984fce44931a4c8e2ace269d45a62640fbfb4.patch" | patch -p1
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd FreeCAD
|
||||||
|
|
||||||
|
cmake -Wno-dev .. \
|
||||||
|
-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 -B "${srcdir}/build" -S .
|
||||||
|
|
||||||
|
ninja -C "${srcdir}/build"
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd FreeCAD
|
||||||
|
"${srcdir}/build/bin/FreeCAD" --console --run-test 0
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd FreeCAD
|
||||||
|
DESTDIR="${pkgdir}" ninja -C "${srcdir}/build" install
|
||||||
|
|
||||||
|
# Create desktop shortcut
|
||||||
|
gendesk -f -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" --name FreeCAD \
|
||||||
|
--mimetypes='application/x-extension-fcstd' --startupnotify=true
|
||||||
|
|
||||||
|
# Package desktop shortcut
|
||||||
|
install -Dm644 freecad.desktop \
|
||||||
|
"${pkgdir}/usr/share/applications/freecad.desktop"
|
||||||
|
|
||||||
|
# Package MIME info
|
||||||
|
#install -Dm644 freecad.xml "$pkgdir/usr/share/mime/packages/freecad.xml"
|
||||||
|
|
||||||
|
cd 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 New Issue
Block a user