android-riscv64-cmocka

maintainer hipersayan_x · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The source is a tarball from the project's official domain (cmocka.org), which is a standard and expected source for the package; building from official project sources is normal AUR packaging practice, even if the host is not on a whitelist.

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 tarball from the project's official domain (cmocka.org), which is a standard and expected source for the package; building from official project sources is normal AUR packaging practice, even if the host is not on a whitelist.

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=riscv64
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-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

Report a package

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

0 / 4000
Your suggestion