mingw-w64-libgcrypt
maintainer patlefort
· 7 votes
· scanned 2026-08-18 00:03:42.021799
LOW
View on AUR ↗
Why flagged
The source is a legitimate upstream tarball from the official GnuPG domain (gnupg.org), which is the project's own release infrastructure; downloading and building from source is standard practice, and the non-whitelisted host is actually the official project host.
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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a legitimate upstream tarball from the official GnuPG domain (gnupg.org), which is the project's own release infrastructure; downloading and building from source is standard practice, and the non-whitelisted host is actually the official project host.
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:23
source=("https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${pkgver}.tar.bz2"{,.sig}
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
2
# Contributor: Andrew Sun <adsun701 at gmail dot com>
3
4
pkgname=mingw-w64-libgcrypt
5
pkgver=1.12.2
6
pkgrel=1
7
pkgdesc="General purpose cryptographic library based on the code from GnuPG (mingw-w64)"
8
arch=("any")
9
url="https://www.gnupg.org"
10
license=(
11
'BSD-3-Clause'
12
'BSD-3-Clause OR GPL-2.0-only'
13
'GPL-2.0-or-later'
14
'LGPL-2.0-or-later'
15
'LGPL-2.1-or-later'
16
'X11'
17
'LicenseRef-scancode-public-domain'
18
'LicenseRef-OCB1'
19
)
20
depends=('mingw-w64-libgpg-error')
21
makedepends=('mingw-w64-configure')
22
options=(staticlibs !buildflags !strip !emptydirs)
23
source=("https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${pkgver}.tar.bz2"{,.sig}
24
"libgcrypt-use-correct-def-file.patch"
25
"Smarter-fig2dev-detection.all.patch")
26
sha1sums=('7b8ff21966a0b6e7a735466b9b9b55d9dac9fa87'
27
'SKIP'
28
'0f03d59dee4b967dfa80621ef4b1efea61772c16'
29
'3613a5454aeaef8d264011f2bc9f2303248fb933')
30
validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA' # "Werner Koch (dist signing 2020)"
31
'AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD') # Niibe Yutaka (GnuPG Release Key)
32
33
_architectures="${MINGW_W64_ARCHS:-x86_64-w64-mingw32}"
34
35
prepare() {
36
cd "${srcdir}/libgcrypt-${pkgver}"
37
patch -p1 -i "$srcdir"/libgcrypt-use-correct-def-file.patch
38
patch -p1 -i "${srcdir}"/Smarter-fig2dev-detection.all.patch
39
autoreconf -fi
40
}
41
42
build() {
43
cd "${srcdir}/libgcrypt-${pkgver}"
44
unset LDFLAGS
45
for _arch in ${_architectures}; do
46
mkdir -p build-${_arch} && pushd build-${_arch}
47
${_arch}-configure \
48
--with-gpg-error-prefix=/usr/${_arch}
49
make
50
popd
51
done
52
}
53
54
package() {
55
for _arch in ${_architectures}; do
56
cd "$srcdir/libgcrypt-${pkgver}/build-${_arch}"
57
make DESTDIR="$pkgdir" install -j1
58
find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
59
find "$pkgdir/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip {} \;
60
find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g
61
rm "$pkgdir/usr/${_arch}/share/info/dir"
62
done
63
}
64
Changes since previous scan
--- PKGBUILD @ 2026-06-19 19:07+++ PKGBUILD @ 2026-08-18 00:03@@ -30,7 +30,7 @@ validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA' # "Werner Koch (dist signing 2020)" 'AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD') # Niibe Yutaka (GnuPG Release Key) -_architectures="i686-w64-mingw32 x86_64-w64-mingw32"+_architectures="${MINGW_W64_ARCHS:-x86_64-w64-mingw32}" prepare() { cd "${srcdir}/libgcrypt-${pkgver}"Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-18 00:03:42 | LOW | 2 |
| 2026-08-17 00:18:29 | LOW | 2 |
| 2026-08-16 17:33:23 | MEDIUM | 1 |
| 2026-06-19 19:07:35 | CLEAN | 2 |
| 2026-06-18 16:11:54 | MEDIUM | 1 |