coot
maintainer hgonomeg
· 3 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads source code and data files from the project maintainer's official academic host; the non-whitelisted domain is plausibly project-owned, and the installed content consists of buildable source and non-executable data, posing minimal supply-chain 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 package downloads source code and data files from the project maintainer's official academic host; the non-whitelisted domain is plausibly project-owned, and the installed content consists of buildable source and non-executable data, posing minimal supply-chain 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:15
https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/$pkgname/dependencies/refmac-monomer-library.tar.gz
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Jakub Smulski <hgonomeg@gmail.com>
2
# Maintainer: Alexander Minges <alexander.minges@gmail.com>
3
pkgname=coot
4
pkgver=1.3.1
5
pkgrel=1
6
pkgdesc="Crystallographic Object-Oriented Toolkit for model building, completion and validation"
7
arch=('i686' 'x86_64')
8
url="https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/"
9
license=('GPL')
10
replaces=('coot-data')
11
makedepends=('autoconf' 'automake' 'libtool' 'eigen' 'boost' 'bc' 'which')
12
depends=('eigen' 'openal' 'coordgen' 'maeparser' 'boost-libs' 'guile' 'gemmi' 'libccp4>=6.5.1-2' 'libclipper>=2.1.20170202-3' 'libvorbis' 'fftw2-float' 'gsl' 'swig'
13
'libgl' 'gtk4' 'glib2' 'glm' 'cairo' 'libssm>=1.4' 'zlib' 'curl' 'python' 'python-gobject' 'sqlite' 'rdkit' 'mmdb2>=2.0.12-4')
14
source=($pkgname-$pkgver.tar.gz::https://github.com/pemsley/$pkgname/archive/refs/tags/Release-$pkgver.tar.gz
15
https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/$pkgname/dependencies/refmac-monomer-library.tar.gz
16
https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/$pkgname/dependencies/reference-structures.tar.gz
17
)
18
19
sha256sums=('39069510b2bd499a407d5cc9202d4df591b353c344dd21aaf30e2ceab8260025'
20
'03562eec612103a48bd114cfe0d171943e88f94b84610d16d542cda138e5f36b'
21
'44db38506f0f90c097d4855ad81a82a36b49cd1e3ffe7d6ee4728b15109e281a'
22
)
23
prepare() {
24
cd "$srcdir/$pkgname-Release-$pkgver"
25
#patch -Np1 -i "$srcdir/glm_nopkgconfig.patch"
26
}
27
28
build() {
29
cd "$srcdir/$pkgname-Release-$pkgver"
30
31
aclocal -I macros
32
libtoolize --automake --copy
33
autoconf
34
automake --copy --add-missing --gnu
35
36
#CXXFLAGS="${CXXFLAGS} -fpermissive"
37
CXXFLAGS="-Wreturn-type -Wl,--as-needed -Wno-sequence-point -Wsign-compare -Wno-unknown-pragmas -Wno-template-id-cdtor -Wno-deprecated-declarations"
38
PYTHON=python3
39
40
./configure --prefix=/usr \
41
--disable-static \
42
--with-enhanced-ligand-tools \
43
--with-gemmi=/usr \
44
--with-sound
45
make
46
}
47
48
package() {
49
cd "$srcdir/$pkgname-Release-$pkgver"
50
make DESTDIR="$pkgdir/" install
51
#sed -i 's|COOT_PYTHON_DIR=|COOT_PYTHON_DIR=/usr/lib/python2.7/site-packages/coot|' src/$pkgname
52
sed -i 's|COOT_REFMAC_LIB_DIR=|COOT_REFMAC_LIB_DIR=/usr/share/coot/lib/|' src/$pkgname
53
install -p -m 755 src/$pkgname $pkgdir/usr/bin
54
55
# remove shebang from python scripts
56
# for lib in $(find $pkgdir/usr/lib/python2.7/site-packages/$pkgname/ -name "*.py"); do
57
# sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
58
# touch -r $lib $lib.new &&
59
# mv $lib.new $lib
60
# done
61
62
# chmod 644 $pkgdir/usr/lib/python2.7/site-packages/$pkgname/$pkgname.py
63
64
install -d $pkgdir/usr/share/$pkgname/reference-structures
65
install -Dm644 $srcdir/reference-structures/*.pdb $pkgdir/usr/share/$pkgname/reference-structures/
66
67
install -d $pkgdir/usr/share/$pkgname/lib/data/monomers
68
cp -r $srcdir/monomers/* $pkgdir/usr/share/$pkgname/lib/data/monomers/
69
}
70
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 |