mingw-w64-med
maintainer orphaned
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source is a tarball from a project-owned domain (salome-platform.org), which is plausibly official despite not being on a standard forge; the build process applies patches and compiles from source, with no execution of prebuilt binaries or remote code, making this a normal AUR package with low risk.
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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a tarball from a project-owned domain (salome-platform.org), which is plausibly official despite not being on a standard forge; the build process applies patches and compiles from source, with no execution of prebuilt binaries or remote code, making this a normal AUR package with low risk.
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:11
source=("https://files.salome-platform.org/Salome/other/med-${pkgver}.tar.gz")
PKGBUILD
1 offending line(s) highlighted
1
pkgname=mingw-w64-med
2
pkgver=4.1.1
3
pkgrel=1
4
pkgdesc='Modelisation et Echanges de Donnees, i.e. Data Modelization and Exchanges - code-aster exchange module linked to hdf5'
5
arch=('any')
6
url='https://www.salome-platform.org/downloads'
7
license=('LGPL')
8
depends=('mingw-w64-hdf5')
9
makedepends=('mingw-w64-cmake')
10
options=('!buildflags' '!strip' 'staticlibs')
11
source=("https://files.salome-platform.org/Salome/other/med-${pkgver}.tar.gz")
12
sha256sums=('dc2b5d54ebf0666e3ff2e974041d2ab0da906061323537023ab165d573389dd0')
13
14
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
15
16
prepare() {
17
cd "${srcdir}/med-${pkgver}_SRC"
18
curl -L https://raw.githubusercontent.com/archlinux/svntogit-community/packages/med-openmpi/trunk/hdf5-1.12.patch | patch -p1
19
sed -i "s|Lmcons.h|lmcons.h|g" src/2.3.6/ci/MEDunvCr.c src/ci/MEDmeshUniversalNameWr.c
20
sed -i "s|DESTINATION lib\${LIB_SUFFIX}|LIBRARY DESTINATION lib\${LIB_SUFFIX} ARCHIVE DESTINATION lib\${LIB_SUFFIX} RUNTIME DESTINATION bin|g" src/CMakeLists.txt tools/medimport/CMakeLists.txt
21
sed -i "s|SET(INSTALL_CMAKE_CONFIG_DIR cmake)|SET(INSTALL_CMAKE_CONFIG_DIR share/cmake/medfile)|g" CMakeLists.txt
22
}
23
24
build() {
25
cd "${srcdir}/med-${pkgver}_SRC"
26
for _arch in ${_architectures}; do
27
mkdir -p build-${_arch} && pushd build-${_arch}
28
CPPFLAGS="-DH5_USE_110_API" ${_arch}-cmake -DMEDFILE_BUILD_TESTS=OFF -DMEDFILE_INSTALL_DOC=OFF -DHDF5_ROOT_DIR=/usr/${_arch} ..
29
make
30
popd
31
done
32
}
33
34
package() {
35
for _arch in $_architectures; do
36
cd "$srcdir"/med-${pkgver}_SRC/build-${_arch}
37
make install DESTDIR="$pkgdir"
38
rm "$pkgdir"/usr/${_arch}/bin/*.exe
39
rm "$pkgdir"/usr/${_arch}/bin/xmdump*
40
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
41
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
42
done
43
}
44
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |