3dslicer-qt6-git
MEDIUM
maintainer hottea
0 votes
scanned 2026-08-19 03:41:13.749572
Why flagged
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
Triggered rules
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:60
"${_pkgname}.svg::https://www.slicer.org/assets/img/3D-Slicer-Mark.svg"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Butui Hu <hot123tea123@gmail.com>
2
#
3
# build 3dslicer with qt6, still in testing, use at your risk
4
#
5
_pkgname=3dslicer
6
pkgname=3dslicer-qt6-git
7
pkgver=5.10.0.r292.785744ed8c
8
pkgrel=1
9
pkgdesc='A free, open source and multi-platform software package widely used for medical, biomedical, and related imaging research, qt6 version'
10
arch=('x86_64')
11
url='https://www.slicer.org'
12
license=('BSD-3-Clause')
13
depends=(
14
bzip2
15
curl
16
dcmtk
17
fftw
18
glibc
19
hwloc
20
libarchive
21
libffi
22
libglvnd
23
libice
24
libpng
25
libsm
26
libx11
27
libxcrypt
28
libxcursor
29
libxext
30
libxfixes
31
libxrender
32
openssl
33
qt6-base
34
qt6-declarative
35
qt6-location
36
qt6-multimedia
37
qt6-svg
38
qt6-webchannel
39
qt6-webengine
40
qt6-scxml
41
qt6-5compat
42
teem
43
util-linux-libs
44
xz
45
zlib
46
)
47
makedepends=(
48
clang
49
cmake
50
gendesk
51
git
52
ninja
53
qt6-tools
54
subversion
55
)
56
options=(!emptydirs !strip)
57
provides=(3dslicer=${pkgver})
58
conflicts=(3dslicer)
59
source=("${_pkgname}::git+https://github.com/Slicer/Slicer.git"
60
"${_pkgname}.svg::https://www.slicer.org/assets/img/3D-Slicer-Mark.svg"
61
"0001-fix-building-with-ctk.patch"
62
"0001-BUG-Fix-export-macro-for-non-Windows-platforms.patch"
63
"0002-ENH-Update-PythonQt-to-use-forked-repository.patch"
64
)
65
sha512sums=('SKIP'
66
'3422d244f819a7ec4c475d3d8a90c79fcb73738920c0830b100c6342ca24d5be607ba60ee3d91892402036a0adf31d5ab7c8fc83f451121a7b537f7de5306014'
67
'fa03a2d951d484f786db273daaa8f305db23b15cd02674540b485fe1557af3cf2bf63dc7bb0e645bef9dc1d07e5e337c5a105d053315851b6d09c2576c4154ff'
68
'9e47a73e11cb0c6d054679a2bfb720859c70c689b546deaa6e4f976d5796c6cd8a68dd1625e416ca836ae2b037e3b72c31a1b30d297ceafd477610fc0a32669c'
69
'3ccd5b91bb43a554454537ad3c59d3431b68792faead9571b5a6ba981a095eb36d054afb28bee91fdf85d378608e5c87262573e75d35ef0f9de174f5b74dc689')
70
71
pkgver() {
72
cd "${srcdir}/${_pkgname}"
73
_max_tag=$(git tag --sort=-v:refname | head -n1)
74
_commit_count=$(git rev-list --count "${_max_tag}"..HEAD)
75
_commit_hash=$(git rev-parse --short HEAD)
76
_max_tag=$(echo "$_max_tag" | sed 's/^v//')
77
_full_version="${_max_tag}.r${_commit_count}.${_commit_hash}"
78
printf "%s" "${_full_version}"
79
}
80
81
prepare() {
82
patch -p1 -d ${srcdir}/${_pkgname} -i ${srcdir}/0001-fix-building-with-ctk.patch
83
echo "Creating desktop file"
84
gendesk -f -n --pkgname ${_pkgname} \
85
--categories "Graphics;MedicalSoftware;Science;" \
86
--exec "Slicer" \
87
--icon "${_pkgname}" \
88
--pkgdesc "${pkgdesc}" \
89
--startupnotify \
90
--custom="StartupWMClass=Slicer"
91
}
92
93
build() {
94
export CC=clang
95
export CXX=clang++
96
cmake \
97
-B "${srcdir}/build" \
98
-DBUILD_TESTING=OFF \
99
-DCMAKE_BUILD_TYPE=Release \
100
-DCMAKE_INSTALL_PREFIX=/usr \
101
-DSlicer_BUILD_DOCUMENTATION=OFF \
102
-DSlicer_BUILD_I18N_SUPPORT=ON \
103
-DSlicer_BUILD_PARAMETERSERIALIZER_SUPPORT=OFF \
104
-DSlicer_REQUIRED_QT_VERSION=6 \
105
-DSlicer_STORE_SETTINGS_IN_APPLICATION_HOME_DIR=OFF \
106
-DSlicer_USE_GIT_PROTOCOL=OFF \
107
-DSlicer_USE_PYTHONQT=ON \
108
-DSlicer_USE_SimpleITK=ON \
109
-DSlicer_USE_SYSTEM_bzip2=ON \
110
-DSlicer_USE_SYSTEM_CTK=OFF \
111
-DSlicer_USE_SYSTEM_CTKAPPLAUNCHER=OFF \
112
-DSlicer_USE_SYSTEM_CTKAppLauncherLib=OFF \
113
-DSlicer_USE_SYSTEM_curl=ON \
114
-DSlicer_USE_SYSTEM_DCMTK=ON \
115
-DSlicer_USE_SYSTEM_ITK=OFF \
116
-DSlicer_USE_SYSTEM_JsonCpp=OFF \
117
-DSlicer_USE_SYSTEM_LibArchive=ON \
118
-DSlicer_USE_SYSTEM_LibFFI=ON \
119
-DSlicer_USE_SYSTEM_LZMA=ON \
120
-DSlicer_USE_SYSTEM_OpenSSL=ON \
121
-DSlicer_USE_SYSTEM_python=OFF \
122
-DSlicer_USE_SYSTEM_qRestAPI=OFF \
123
-DSlicer_USE_SYSTEM_QT=ON \
124
-DSlicer_USE_SYSTEM_RapidJSON=OFF \
125
-DSlicer_USE_SYSTEM_SlicerExecutionModel=OFF \
126
-DSlicer_USE_SYSTEM_sqlite=OFF \
127
-DSlicer_USE_SYSTEM_tbb=OFF \
128
-DSlicer_USE_SYSTEM_teem=ON \
129
-DSlicer_USE_SYSTEM_VTK=OFF \
130
-DSlicer_USE_SYSTEM_zlib=ON \
131
-GNinja \
132
-S "${srcdir}/${_pkgname}" \
133
-Wno-dev
134
cmake --build "${srcdir}/build"
135
}
136
137
package() {
138
cmake --build "${srcdir}/build/Slicer-build" --target package
139
install -d "${pkgdir}/opt/${_pkgname}" "${pkgdir}/usr/bin"
140
tar xvf "${srcdir}/build/Slicer-build/"*.tar.gz -C "${pkgdir}/opt/${_pkgname}" --strip-components 1
141
ln -s /opt/${_pkgname}/Slicer "${pkgdir}/usr/bin/Slicer"
142
install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
143
install -Dm644 "${srcdir}/${_pkgname}.svg" "${pkgdir}/usr/share/pixmaps/${_pkgname}.svg"
144
}
145
# vim:set ts=2 sw=2 et:
146
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-19 03:41:13 | Medium | 1 |
| 2026-06-20 00:18:46 | Medium | 1 |
| 2026-06-19 23:51:18 | Clean | 2 |
| 2026-06-19 19:07:35 | Low | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |