3dslicer-git
The source from a non-standard host is an SVG icon from the official project's website, which is non-executable data; the actual code is built from the official GitHub repository, making the risk low.
Triggered rules
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 from a non-standard host is an SVG icon from the official project's website, which is non-executable data; the actual code is built from the official GitHub repository, making the risk low.
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:59
"${_pkgname}.svg::https://www.slicer.org/assets/img/3D-Slicer-Mark.svg"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Butui Hu <hot123tea123@gmail.com>
_pkgname=3dslicer
pkgname=3dslicer-git
pkgver=5.12.4.r135.311cf24b61
pkgrel=1
pkgdesc='A free, open source and multi-platform software package widely used for medical, biomedical, and related imaging research'
arch=('x86_64')
url='https://www.slicer.org'
license=('BSD-3-Clause')
depends=(
bzip2
curl
dcmtk
fftw
glibc
hwloc
libarchive
libffi
libglvnd
libice
libpng
libsm
libx11
libxcrypt
libxcursor
libxext
libxfixes
libxrender
openssl
qt5-base
qt5-declarative
qt5-location
qt5-multimedia
qt5-svg
qt5-webchannel
qt5-webengine
qt5-x11extras
qt5-xmlpatterns
teem
util-linux-libs
xz
zlib
)
makedepends=(
clang
cmake
gendesk
git
ninja
qt5-script
qt5-tools
subversion
)
options=(!emptydirs !strip)
provides=(3dslicer=${pkgver})
conflicts=(3dslicer)
source=("${_pkgname}::git+https://github.com/Slicer/Slicer.git"
"${_pkgname}.svg::https://www.slicer.org/assets/img/3D-Slicer-Mark.svg"
"0001-ENH-Add-pip-target-fallback-for-read-only-site-packages.patch"
)
sha512sums=('SKIP'
'3422d244f819a7ec4c475d3d8a90c79fcb73738920c0830b100c6342ca24d5be607ba60ee3d91892402036a0adf31d5ab7c8fc83f451121a7b537f7de5306014'
'7870c6172dd4af00b9b9cd87a28d224cb8c5360717b98f1fdc2df2bab3bda0a6bcd8530fa0c2b6e25f90a88aa4b5f35cafe79eda77a154abced0fa09e70e0bed'
)
pkgver() {
cd "${srcdir}/${_pkgname}"
_max_tag=$(git tag --sort=-v:refname | head -n1)
_commit_count=$(git rev-list --count "${_max_tag}"..HEAD)
_commit_hash=$(git rev-parse --short HEAD)
_max_tag=$(echo "$_max_tag" | sed 's/^v//')
_full_version="${_max_tag}.r${_commit_count}.${_commit_hash}"
printf "%s" "${_full_version}"
}
prepare() {
echo "Creating desktop file"
gendesk -f -n --pkgname ${_pkgname} \
--categories "Science;MedicalSoftware;Education;MedicalSoftware" \
--exec "Slicer" \
--icon "${_pkgname}" \
--pkgdesc "${pkgdesc}" \
--startupnotify \
--custom="StartupWMClass=Slicer"
patch -d ${_pkgname} -p1 -i ${srcdir}/0001-ENH-Add-pip-target-fallback-for-read-only-site-packages.patch
}
build() {
export CC=clang
export CXX=clang++
cmake \
-B "${srcdir}/build" \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSlicer_BUILD_DOCUMENTATION=OFF \
-DSlicer_BUILD_I18N_SUPPORT=ON \
-DSlicer_BUILD_PARAMETERSERIALIZER_SUPPORT=OFF \
-DSlicer_REQUIRED_QT_VERSION=5 \
-DSlicer_STORE_SETTINGS_IN_APPLICATION_HOME_DIR=OFF \
-DSlicer_USE_GIT_PROTOCOL=OFF \
-DSlicer_USE_PYTHONQT=ON \
-DSlicer_USE_SYSTEM_bzip2=ON \
-DSlicer_USE_SYSTEM_CTK=OFF \
-DSlicer_USE_SYSTEM_CTKAPPLAUNCHER=OFF \
-DSlicer_USE_SYSTEM_CTKAppLauncherLib=OFF \
-DSlicer_USE_SYSTEM_curl=ON \
-DSlicer_USE_SYSTEM_DCMTK=ON \
-DSlicer_USE_SYSTEM_ITK=OFF \
-DSlicer_USE_SYSTEM_JsonCpp=OFF \
-DSlicer_USE_SYSTEM_LibArchive=ON \
-DSlicer_USE_SYSTEM_LibFFI=ON \
-DSlicer_USE_SYSTEM_LZMA=ON \
-DSlicer_USE_SYSTEM_OpenSSL=ON \
-DSlicer_USE_SYSTEM_ParameterSerializer=OFF \
-DSlicer_USE_SYSTEM_python=OFF \
-DSlicer_USE_SYSTEM_qRestAPI=OFF \
-DSlicer_USE_SYSTEM_QT=ON \
-DSlicer_USE_SYSTEM_RapidJSON=OFF \
-DSlicer_USE_SYSTEM_SlicerExecutionModel=OFF \
-DSlicer_USE_SYSTEM_sqlite=OFF \
-DSlicer_USE_SYSTEM_tbb=OFF \
-DSlicer_USE_SYSTEM_teem=ON \
-DSlicer_USE_SYSTEM_VTK=OFF \
-DSlicer_USE_SYSTEM_zlib=ON \
-GNinja \
-S "${srcdir}/${_pkgname}" \
-Wno-dev
cmake --build "${srcdir}/build"
}
package() {
cmake --build "${srcdir}/build/Slicer-build" --target package
install -d "${pkgdir}/opt/${_pkgname}" "${pkgdir}/usr/bin"
tar xvf "${srcdir}/build/Slicer-build/"*.tar.gz -C "${pkgdir}/opt/${_pkgname}" --strip-components 1
ln -s /opt/${_pkgname}/Slicer "${pkgdir}/usr/bin/Slicer"
install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -Dm644 "${srcdir}/${_pkgname}.svg" "${pkgdir}/usr/share/pixmaps/${_pkgname}.svg"
}
# vim:set ts=2 sw=2 et:
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |