blob: e41fc2101a45719ffe03abeca29d14d66098fac6 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Luke Labrie-Cleary <luke.cleary@copenhagenatomics.com>
pkgname=python-cad_to_openmc-git
pkgver=1.0.1.r184.g6df6494
pkgrel=1
pkgdesc="code to target the conversion from a step-file to a h5m-geometry
for neutronics"
arch=('any')
url="https://github.com/united-neux/CAD_to_OpenMC"
license=('MIT')
depends=(
python
python-gmsh-bin
python-pyparsing
python-numpy
python-networkx
python-unidecode
hdf5-openmpi
python-multimethod
python-typish
python-ezdxf
python-nptyping
python-pymoab
moab-git
nlopt
python-cadquery
)
makedepends=(
git
python-build
python-installer
python-wheel
cython
)
_name="CAD_to_OpenMC"
provides=("${_name%-pkgver}")
source=("git+https://github.com/united-neux/CAD_to_OpenMC.git")
md5sums=('SKIP')
conflicts=('python-cad_to_openmc')
pkgver() {
cd "$srcdir/${_name}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${_name}"
python \
-m build \
--wheel \
--no-isolation
}
package() {
cd "$srcdir/${_name}"
python -m installer --destdir="$pkgdir" dist/*.whl
# make git repo available in opt
cd "$srcdir"
mkdir $pkgdir/opt
cp -r "$_name" $pkgdir/opt
}
|