damask-mesh

LOW
maintainer MartinDiehl 2 votes base damask scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The source is a tarball from the project's official domain (damask-multiphysics.org), which is not on the whitelist but is plausibly legitimate; building from official project sources is normal AUR practice and the checksum is verified.

Triggered rules

Low AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a tarball from the project's official domain (damask-multiphysics.org), which is not on the whitelist but is plausibly legitimate; building from official project sources is normal AUR practice and the checksum is verified.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:17 source=(https://damask-multiphysics.org/download/damask-${pkgver}.tar.xz

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Martin Diehl <martin.diehl@kuleuven.be>
2pkgbase=damask
3pkgname=('damask' 'damask-grid' 'damask-mesh' 'python-damask')
4pkgver=3.1.0
5pkgrel=3
6pkgdesc='DAMASK - The Duesseldorf Advanced Material Simulation Kit'
7arch=('x86_64')
8url='https://damask-multiphysics.org'
9license=('AGPL-3.0-or-later')
10petsc_excluded='3.27' # next PETSc release (exclude because API changes are expected)
11makedepends=('gcc-fortran' 'cmake'
12 'python-build' 'python-installer' 'python-wheel' 'python-setuptools'
13 "petsc<${petsc_excluded}" 'hdf5-openmpi' 'fftw-openmpi' 'zlib' 'libfyaml'
14 'python-pandas' 'python-numpy' 'python-scipy' 'python-h5py-openmpi' 'python-matplotlib' 'python-pyaml'
15 'vtk' 'fmt' 'verdict')
16optdepends=('paraview: post-processing')
17source=(https://damask-multiphysics.org/download/damask-${pkgver}.tar.xz
18 'DAMASK_grid.1'
19 'DAMASK_mesh.1')
20
21sha512sums=('7e00d655601ab1c097505e4202713f0708bd6137b01fc5e47b162d788399fb95669c39f6df79bb699ede87fce502011f94cec37839cd774fb54a8b7dd1a5aeab'
22 'd41eaae25bfb428661cb121ff89b80c6f146c997df40e1bd8736381c1ae73c0535d0886d6586edf34bb55d47629efa27d23058a044363c33f383f9ab097b91a4'
23 '5ed3d30432a3999894f137da0eeed73985c3ba7155458b3c25dbda2b91b44c23a821da880881c71cd224945133ed8290da04ee1caa079533e746b6d0070e46be')
24
25prepare() {
26 sed -i 's#fs_case_sensitive(${CMAKE_INSTALL_PREFIX}/bin fs_is_case_sensitive)#set(fs_is_case_sensitive BOOL FALSE)#g' ${pkgname}-${pkgver}/src/CMakeLists.txt
27 sed -i '21s/25/26/g' ${pkgname}-${pkgver}/CMakeLists.txt
28}
29
30build() {
31 cmake -S ${pkgbase}-${pkgver} \
32 -B build-test \
33 -D TEST=ON \
34 -D CMAKE_INSTALL_PREFIX:PATH=/usr \
35 -D CMAKE_BUILD_TYPE:STRING=Performance
36 make -C build-test
37
38 cmake -S ${pkgbase}-${pkgver} \
39 -B build-grid \
40 -D GRID=ON \
41 -D CMAKE_INSTALL_PREFIX:PATH=/usr \
42 -D CMAKE_BUILD_TYPE:STRING=Performance
43 make -C build-grid
44
45 cmake -S ${pkgbase}-${pkgver} \
46 -B build-mesh \
47 -D MESH=ON \
48 -D CMAKE_INSTALL_PREFIX:PATH=/usr \
49 -D CMAKE_BUILD_TYPE:STRING=Performance
50 make -C build-mesh
51
52 cd ${pkgbase}-${pkgver}/python
53 python -m build --wheel --no-isolation
54}
55
56check() {
57 mpirun -np 2 build-test/src/DAMASK_test
58
59 example_dir="$(pwd)"/${pkgbase}-${pkgver}/examples/grid
60 mpirun -np 2 build-grid/src/DAMASK_grid \
61 -l "${example_dir}"/tensionX.yaml \
62 -g "${example_dir}"/20grains16x16x16.vti \
63 -m "${example_dir}"/material.yaml \
64 -w $(mktemp -d)
65
66 example_dir="$(pwd)"/${pkgbase}-${pkgver}/examples/mesh
67 ./build-mesh/src/DAMASK_mesh \
68 -l "${example_dir}"/tensionZ_3g.yaml \
69 -g "${example_dir}"/cube_3grains.msh \
70 -m "${example_dir}"/material.yaml \
71 -w $(mktemp -d)
72
73 PYTHONPATH=${pkgbase}-${pkgver}/python:"${PYTHONPATH}"
74 python -c "import damask;print(damask.__version__)"
75}
76
77package_damask-grid() {
78 pkgdesc='Grid solver for DAMASK'
79 depends=("petsc<${petsc_excluded}" 'openmpi' 'hdf5-openmpi' 'libfyaml' 'zlib' 'fftw-openmpi')
80 optdepends=('dream3d: pre-processing')
81
82 install -m 644 -D ${pkgbase}-${pkgver}/examples/grid/* -t "${pkgdir}"/usr/share/doc/${pkgname}/
83 install -m 644 -D DAMASK_grid.1 -t "${pkgdir}"/usr/share/man/man1/
84 install -m 644 -D DAMASK_grid.1 -T "${pkgdir}"/usr/share/man/man1/damask_grid.1
85 install -m 644 -D ${pkgbase}-${pkgver}/env/damask_grid -t "${pkgdir}"/usr/share/bash-completion/completions/
86 install -m 644 -D ${pkgbase}-${pkgver}/env/_damask_grid -t "${pkgdir}"/usr/share/zsh/site-functions/
87
88 DESTDIR="${pkgdir}" cmake --install build-grid
89 ln -s DAMASK_grid "${pkgdir}"/usr/bin/damask_grid
90}
91
92package_damask-mesh() {
93 pkgdesc='Mesh solver for DAMASK'
94 depends=("petsc<${petsc_excluded}" 'openmpi' 'hdf5-openmpi' 'libfyaml')
95 optdepends=('neper: pre-processing')
96
97 install -m 644 -D ${pkgbase}-${pkgver}/examples/mesh/* -t "${pkgdir}"/usr/share/doc/${pkgname}/
98 install -m 644 -D DAMASK_mesh.1 -t "${pkgdir}"/usr/share/man/man1/
99 install -m 644 -D DAMASK_mesh.1 -T "${pkgdir}"/usr/share/man/man1/damask_mesh.1
100 install -m 644 -D ${pkgbase}-${pkgver}/env/damask_mesh -t "${pkgdir}"/usr/share/bash-completion/completions/
101 install -m 644 -D ${pkgbase}-${pkgver}/env/_damask_mesh -t "${pkgdir}"/usr/share/zsh/site-functions/
102
103 DESTDIR="${pkgdir}" cmake --install build-mesh
104 ln -s DAMASK_mesh "${pkgdir}"/usr/bin/damask_mesh
105}
106
107package_python-damask() {
108 pkgdesc='Pre- and post-processing tools for DAMASK'
109 depends=('python-pandas' 'python-numpy' 'python-scipy' 'python-h5py-openmpi' 'vtk' 'python-matplotlib' 'python-pyaml')
110 optdepends=('python-seaborn: post-processing'
111 'jupyterlab: comfortable shell'
112 'ipython: comfortable shell')
113
114 python -m installer --destdir="${pkgdir}" ${pkgbase}-${pkgver}/python/dist/*.whl
115}
116
117package_damask() {
118 depends=('python-damask' 'damask-grid' 'damask-mesh')
119
120 install -m 755 -d "${pkgdir}"/usr/share/doc/${pkgname}/
121 cp -r ${pkgbase}-${pkgver}/examples/config/* ${pkgdir}/usr/share/doc/${pkgname}/
122
123}
124

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 00:23:45 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion