android-x86-cmocka

LOW
maintainer hipersayan_x 0 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The source is a verifiable upstream tarball from the project's official domain (cmocka.org), building the project's own code; the non-whitelisted host is the project's legitimate release infrastructure, and the package installs only compiled libraries and license data.

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 source is a verifiable upstream tarball from the project's official domain (cmocka.org), building the project's own code; the non-whitelisted host is the project's legitimate release infrastructure, and the package installs only compiled libraries and license data.

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:17 source=("https://cmocka.org/files/2.0/cmocka-${pkgver}.tar.xz"{,.asc})

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
2# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
3# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
4
5_android_arch=x86
6
7pkgname=android-${_android_arch}-cmocka
8pkgver=2.0.2
9pkgrel=1
10arch=('any')
11pkgdesc="Elegant unit testing framework for C with support for mock objects (Android ${_android_arch})"
12url='https://cmocka.org/'
13license=('Apache')
14groups=(android-cmocka)
15depends=('android-ndk')
16makedepends=('android-cmake')
17source=("https://cmocka.org/files/2.0/cmocka-${pkgver}.tar.xz"{,.asc})
18options=(!strip !buildflags staticlibs !emptydirs)
19md5sums=('5f80f0aa5494ecf36bdedb3bc659dba9'
20 'SKIP')
21validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn@cryptomilk.org>
22
23build() {
24 cd "${srcdir}/cmocka-${pkgver}"
25 source android-env ${_android_arch}
26
27 android-${_android_arch}-cmake \
28 -S . \
29 -B build-shared \
30 -DCMAKE_CROSSCOMPILING=TRUE \
31 -DBUILD_SHARED_LIBS=ON \
32 -DBUILD_TESTING=OFF \
33 -DWITH_STATIC_LIB=TRUE \
34 -DWITH_EXAMPLES=OFF \
35 -DUNIT_TESTING=OFF
36 cmake --build build-shared
37
38 android-${_android_arch}-cmake \
39 -S . \
40 -B build-static \
41 -DCMAKE_CROSSCOMPILING=TRUE \
42 -DBUILD_SHARED_LIBS=OFF \
43 -DBUILD_TESTING=OFF \
44 -DWITH_STATIC_LIB=FALSE \
45 -DWITH_EXAMPLES=OFF \
46 -DUNIT_TESTING=OFF
47 cmake --build build-static
48}
49
50package() {
51 cd "${srcdir}/cmocka-${pkgver}"
52 source android-env ${_android_arch}
53
54 make -C build-shared DESTDIR="${pkgdir}" install
55 make -C build-static DESTDIR="${pkgdir}" install
56 ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
57 ${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
58
59 install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
60}
61

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 00:23:45 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