mingw-w64-libgcrypt
The source is a legitimate libgcrypt release tarball from the official gnupg.org domain, which is the project's own infrastructure; building from this source is standard practice and not inherently dangerous despite the non-whitelisted host flag.
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 is a legitimate libgcrypt release tarball from the official gnupg.org domain, which is the project's own infrastructure; building from this source is standard practice and not inherently dangerous despite the non-whitelisted host flag.
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:23
source=("https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${pkgver}.tar.bz2"{,.sig}
PKGBUILD
1 offending line(s) highlighted# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
# Contributor: Andrew Sun <adsun701 at gmail dot com>
pkgname=mingw-w64-libgcrypt
pkgver=1.12.4
pkgrel=1
pkgdesc="General purpose cryptographic library based on the code from GnuPG (mingw-w64)"
arch=("any")
url="https://www.gnupg.org"
license=(
'BSD-3-Clause'
'BSD-3-Clause OR GPL-2.0-only'
'GPL-2.0-or-later'
'LGPL-2.0-or-later'
'LGPL-2.1-or-later'
'X11'
'LicenseRef-scancode-public-domain'
'LicenseRef-OCB1'
)
depends=('mingw-w64-libgpg-error')
makedepends=('mingw-w64-configure')
options=(staticlibs !buildflags !strip !emptydirs)
source=("https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${pkgver}.tar.bz2"{,.sig}
"libgcrypt-use-correct-def-file.patch"
"Smarter-fig2dev-detection.all.patch")
sha1sums=('2907251e1dc68001fcdbeb0b73c2233fdd2dd786'
'SKIP'
'0f03d59dee4b967dfa80621ef4b1efea61772c16'
'3613a5454aeaef8d264011f2bc9f2303248fb933')
validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA' # "Werner Koch (dist signing 2020)"
'AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD') # Niibe Yutaka (GnuPG Release Key)
_architectures="${MINGW_W64_ARCHS:-x86_64-w64-mingw32}"
prepare() {
cd "${srcdir}/libgcrypt-${pkgver}"
patch -p1 -i "$srcdir"/libgcrypt-use-correct-def-file.patch
patch -p1 -i "${srcdir}"/Smarter-fig2dev-detection.all.patch
autoreconf -fi
}
build() {
cd "${srcdir}/libgcrypt-${pkgver}"
unset LDFLAGS
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-configure \
--with-gpg-error-prefix=/usr/${_arch}
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir/libgcrypt-${pkgver}/build-${_arch}"
make DESTDIR="$pkgdir" install -j1
find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
find "$pkgdir/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip {} \;
find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g
rm "$pkgdir/usr/${_arch}/share/info/dir"
done
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-02 00:00:32 | Low | 2 |
| 2026-10-01 00:02:06 | Low | 2 |
| 2026-09-30 00:20:07 | Low | 2 |
| 2026-09-29 00:07:46 | Low | 2 |
| 2026-09-28 00:28:32 | Low | 2 |
| 2026-09-27 00:07:07 | Low | 2 |
| 2026-09-26 00:12:15 | Low | 2 |
| 2026-09-25 00:03:36 | Low | 2 |
| 2026-09-24 00:24:14 | Low | 2 |
| 2026-09-23 00:28:13 | Low | 2 |
| 2026-09-22 00:15:14 | Low | 2 |
| 2026-09-21 00:26:32 | Low | 2 |
| 2026-09-20 00:25:31 | Low | 2 |
| 2026-09-19 00:25:36 | Low | 2 |
| 2026-09-18 00:17:11 | Low | 2 |
| 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 |