android-x86-64-cmocka
maintainer hipersayan_x
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source is a signed upstream tarball from the official project domain (cmocka.org), building the project's own code; the non-whitelisted host is the project's official site, so the risk is low despite the static analyzer 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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a signed upstream tarball from the official project domain (cmocka.org), building the project's own code; the non-whitelisted host is the project's official site, so the risk is low despite the static analyzer 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: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-64
6
7
pkgname=android-${_android_arch}-cmocka
8
pkgver=2.0.2
9
pkgrel=1
10
arch=('any')
11
pkgdesc="Elegant unit testing framework for C with support for mock objects (Android ${_android_arch})"
12
url='https://cmocka.org/'
13
license=('Apache')
14
groups=(android-cmocka)
15
depends=('android-ndk')
16
makedepends=('android-cmake')
17
source=("https://cmocka.org/files/2.0/cmocka-${pkgver}.tar.xz"{,.asc})
18
options=(!strip !buildflags staticlibs !emptydirs)
19
md5sums=('5f80f0aa5494ecf36bdedb3bc659dba9'
20
'SKIP')
21
validpgpkeys=('8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D') # Andreas Schneider <asn@cryptomilk.org>
22
23
build() {
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
50
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |