mingw-w64-libgcrypt

LOW
maintainer patlefort 7 votes scanned 2026-10-02 00:00:32.890515
View on AUR
Why flagged

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

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 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)
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
4pkgname=mingw-w64-libgcrypt
5pkgver=1.12.4
6pkgrel=1
7pkgdesc="General purpose cryptographic library based on the code from GnuPG (mingw-w64)"
8arch=("any")
9url="https://www.gnupg.org"
10license=(
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)
20depends=('mingw-w64-libgpg-error')
21makedepends=('mingw-w64-configure')
22options=(staticlibs !buildflags !strip !emptydirs)
23source=("https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${pkgver}.tar.bz2"{,.sig}
24 "libgcrypt-use-correct-def-file.patch"
25 "Smarter-fig2dev-detection.all.patch")
26sha1sums=('2907251e1dc68001fcdbeb0b73c2233fdd2dd786'
27 'SKIP'
28 '0f03d59dee4b967dfa80621ef4b1efea61772c16'
29 '3613a5454aeaef8d264011f2bc9f2303248fb933')
30validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA' # "Werner Koch (dist signing 2020)"
31 'AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD') # Niibe Yutaka (GnuPG Release Key)
32
33_architectures="${MINGW_W64_ARCHS:-x86_64-w64-mingw32}"
34
35prepare() {
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
42build() {
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
54package() {
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

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion