blob: 1f5dab77710d72bb4945d47e3a4b50a8682d32a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Salamandar <felix at piedallu dot me>
pkgname='freecad-assembly3-git'
pkgver=r498.e9181b6
pkgrel=1
pkgdesc="Assembly3 workbench for FreeCAD v0.18"
arch=('x86_64')
license=('GPL3')
url="https://github.com/realthunder/FreeCAD_assembly3"
source=(
"${pkgname}::git+${url}.git"
)
sha256sums=(
'SKIP'
)
depends=(
'freecad-linkstage3-git'
'python'
)
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
git submodule update --init slvs
mkdir slvs/build -p
pushd slvs/build >/dev/null
cmake -DBUILD_PYTHON=1 -DOpenGL_GL_PREFERENCE=GLVND ..
make _slvs
cp src/swig/python/{slvs.py,_slvs.so} ../../py_slvs
popd >/dev/null
touch py_slvs/__init__.py
}
package() {
cd "${pkgname}"
install -d \
"${pkgdir}/usr/lib/freecad/Ext/freecad/asm3"
rsync -qav \
--exclude='.git' \
--exclude='slvs' \
--exclude='py_slvs_mac' \
"${srcdir}/${pkgname}/" \
"${pkgdir}/usr/lib/freecad/Ext/freecad/asm3"
}
|