mingw-w64-opencascade
The source is a tarball from the official project's Git repository (opencascade.org), hosted on a plausible project-owned domain (git.dev.opencascade.org), building the project's own source code; the non-whitelisted host is not a security risk in this context.
Triggered rules
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 the official project's Git repository (opencascade.org), hosted on a plausible project-owned domain (git.dev.opencascade.org), building the project's own source code; the non-whitelisted host is not a security risk in this context.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:15
source=("opencascade-${pkgver}.tgz::https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/${_pkgver};sf=tgz"
PKGBUILD
1 offending line(s) highlighted# Maintainer: CloverGit <clovergit@hotmail.com>
# Contributor: Michel Zou
pkgname=mingw-w64-opencascade
pkgver=7.8.1
_pkgver=V7_8_1
pkgrel=1
pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation (mingw-w64)"
arch=('any')
url="https://www.opencascade.org"
license=('custom')
depends=('mingw-w64-tk' 'mingw-w64-ffmpeg' 'mingw-w64-freeimage' 'mingw-w64-onetbb' 'mingw-w64-rapidjson')
#TODO: 'mingw-w64-vtk'
makedepends=('mingw-w64-cmake')
options=('!buildflags' '!strip' 'staticlibs')
source=("opencascade-${pkgver}.tgz::https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/${_pkgver};sf=tgz"
'fix-install-dir-references.patch')
sha256sums=('33f2bdb67e3f6ae469f3fa816cfba34529a23a9cb736bf98a32b203d8531c523'
'afb584aa453993ae8d9e2b983594558531ede735a5892754b812be30650c9fb5')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
prepare() {
cd "occt-${_pkgver}"
# patch -Np1 -i "$srcdir/fix-install-dir-references.patch"
# cross paths
sed -i "s|CMAKE_FIND_ROOT_PATH_BOTH||g" adm/cmake/*.cmake
sed -i "s|NO_DEFAULT_PATH||g" adm/cmake/*.cmake
# wrong lib name .
sed -i "s|CSF_FreeImagePlus|FreeImage|g" adm/cmake/freeimage.cmake
# dont ignore linker flags
sed -i 's|set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--export-all-symbols")|set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--export-all-symbols \${CMAKE_SHARED_LINKER_FLAGS}")|g' adm/cmake/occt_defs_flags.cmake
# find .dll.a extension
sed -i 's|set (CMAKE_FIND_LIBRARY_SUFFIXES |#set (CMAKE_FIND_LIBRARY_SUFFIXES |g' adm/cmake/*.cmake
}
build() {
cd "occt-${_pkgver}"
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_FREEIMAGE=ON \
-DUSE_FFMPEG=ON \
-DUSE_VTK=OFF \
-DUSE_RAPIDJSON=ON \
-DUSE_TBB=ON \
-DBUILD_DOC_Overview=OFF \
-DUSE_TBB=OFF \
-DUSE_FFMPEG=OFF \
-DINSTALL_DIR_BIN=bin \
-DINSTALL_DIR_LIB=lib \
-DINSTALL_DIR_DATA=share/opencascade/data \
-DINSTALL_DIR_CMAKE=lib/cmake \
-DINSTALL_DIR_INCLUDE=include \
-DINSTALL_DIR_SAMPLES=share/opencascade/samples \
-DINSTALL_DIR_SCRIPT=share/opencascade/script \
-DINSTALL_DIR_RESOURCE=share/opencascade/resources \
..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir/occt-${_pkgver}/build-${_arch}"
make install DESTDIR="$pkgdir"
rm "$pkgdir"/usr/${_arch}/*.txt
rm "$pkgdir"/usr/${_arch}/bin/*.exe
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
# vim: set sw=2 ts=2 et:
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |