blob: ad56ed325b8b323dcf2ac1c9ce00f9adea3cf9ce (
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
|
# Maintainer: Luke Labrie-Cleary <luke.cleary@copenhagenatomics.com>
pkgname=python-cad_to_openmc
pkgver=0.2.6.r9.gfba782c
pkgrel=2
pkgdesc="code to target the conversion from a step-file to a h5m-geometry
for neutronics"
arch=('x86_64')
url="https://github.com/openmsr/CAD_to_OpenMC"
license=('MIT')
depends=(
python
python-pip
moab-git
)
makedepends=(
git
python
python-build
python-installer
python-wheel
)
_name="CAD_to_OpenMC"
provides=("${_name%-pkgver}")
source=("git+https://github.com/openmsr/CAD_to_OpenMC.git")
md5sums=('SKIP')
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
pip install --break-system-packages -r requirements.txt
# make git repo available in opt
cd "$srcdir"
mkdir $pkgdir/opt
cp -r "$_name" $pkgdir/opt
}
|