android-aarch64-cmocka
The source is a signed upstream tarball from the project's official domain (cmocka.org), which is a plausibly legitimate source; building from official project sources, even on a non-whitelisted host, is normal AUR packaging and not inherently dangerous.
Triggered rules
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 signed upstream tarball from the project's official domain (cmocka.org), which is a plausibly legitimate source; building from official project sources, even on a non-whitelisted host, is normal AUR packaging and not inherently dangerous.
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:17
source=("https://cmocka.org/files/2.0/cmocka-${pkgver}.tar.xz"{,.asc})
PKGBUILD
1 offending line(s) highlighted# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
_android_arch=aarch64
pkgname=android-${_android_arch}-cmocka
pkgver=2.0.2
pkgrel=1
arch=('any')
pkgdesc="Elegant unit testing framework for C with support for mock objects (Android ${_android_arch})"
url='https://cmocka.org/'
license=('Apache')
groups=(android-cmocka)
depends=('android-ndk')
makedepends=('android-cmake')
source=("https://cmocka.org/files/2.0/cmocka-${pkgver}.tar.xz"{,.asc})
options=(!strip !buildflags staticlibs !emptydirs)
md5sums=('5f80f0aa5494ecf36bdedb3bc659dba9'
'SKIP')
validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn@cryptomilk.org>
build() {
cd "${srcdir}/cmocka-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-cmake \
-S . \
-B build-shared \
-DCMAKE_CROSSCOMPILING=TRUE \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DWITH_STATIC_LIB=TRUE \
-DWITH_EXAMPLES=OFF \
-DUNIT_TESTING=OFF
cmake --build build-shared
android-${_android_arch}-cmake \
-S . \
-B build-static \
-DCMAKE_CROSSCOMPILING=TRUE \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DWITH_STATIC_LIB=FALSE \
-DWITH_EXAMPLES=OFF \
-DUNIT_TESTING=OFF
cmake --build build-static
}
package() {
cd "${srcdir}/cmocka-${pkgver}"
source android-env ${_android_arch}
make -C build-shared DESTDIR="${pkgdir}" install
make -C build-static DESTDIR="${pkgdir}" install
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |