android-armv7a-eabi-libssh
The source is a standard upstream tarball from the project's official domain (libssh.org), which is not on the whitelist but is plausibly legitimate; building from official project sources is normal AUR packaging behavior.
Triggered rules
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 standard upstream tarball from the project's official domain (libssh.org), which is not on the whitelist but is plausibly legitimate; building from official project sources is normal AUR packaging behavior.
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:25
source=("https://www.libssh.org/files/${pkgver%.*}/libssh-${pkgver}.tar.xz"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Karl-Felix Glatzer <karl.glatzer@gmx.de>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: ice-man <icemanf@gmail.com>
# Contributor: sergeantspoon <sergeantspoon@archlinux.us>
# Contributor: Alexey Pavlov <alexpux@gmail.com>
_android_arch=armv7a-eabi
pkgname=android-${_android_arch}-libssh
pkgver=0.12.2
pkgrel=1
arch=('any')
pkgdesc="Library for accessing ssh client services through C libraries (Android ${_android_arch})"
license=('LGPL')
url="https://www.libssh.org/"
groups=('android-libssh')
depends=("android-${_android_arch}-zlib"
"android-${_android_arch}-openssl")
makedepends=('android-cmake'
'python')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://www.libssh.org/files/${pkgver%.*}/libssh-${pkgver}.tar.xz"
'0001-Fix-static-lib.patch'
'0002-Disable-getifaddrs.patch')
md5sums=('d8a7ab5a0b337353494eac1f343db365'
'66588a420aac9c580c31018a5b1c78cf'
'063230102f24f4bcb8aea86575e00def')
prepare() {
cd "${srcdir}/libssh-${pkgver}"
source android-env ${_android_arch}
# Disable automatic detection of openssl since it picks up openssl-1.0
sed 's/find_package(OpenSSL)/#find_package(OpenSSL)/' -i CMakeLists.txt
patch -Np1 -i ../0001-Fix-static-lib.patch
if [ "${ANDROID_MINIMUM_PLATFORM}" -lt 24 ]; then
patch -Np1 -i ../0002-Disable-getifaddrs.patch
fi
}
build() {
cd "${srcdir}/libssh-${pkgver}"
source android-env ${_android_arch}
export CFLAGS="${CFLAGS} -D__USE_BSD"
export CXXFLAGS="${CXXFLAGS} -D__USE_BSD"
version=$(cat "${ANDROID_PREFIX_INCLUDE}/openssl/opensslv.h" | grep "OPENSSL_VERSION_TEXT" | sed 's/^[^\"]*"OpenSSL //' | sed 's/ .*$//')
android-${_android_arch}-cmake \
-S . \
-B build-shared \
-DWITH_GSSAPI=OFF \
-DBUILD_SHARED_LIBS=ON \
-DOPENSSL_FOUND=ON \
-DOPENSSL_INCLUDE_DIR="${ANDROID_PREFIX_INCLUDE}" \
-DOPENSSL_SSL_LIBRARY="${ANDROID_PREFIX_LIB}/libssl.so" \
-DOPENSSL_CRYPTO_LIBRARY="${ANDROID_PREFIX_LIB}/libcrypto.so" \
-DOPENSSL_VERSION="${version}" \
-DUNIT_TESTING=OFF \
-DWITH_EXAMPLES=OFF
make -C build-shared $MAKEFLAGS
android-${_android_arch}-cmake \
-S . \
-B build-static \
-DWITH_GSSAPI=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DOPENSSL_FOUND=ON \
-DOPENSSL_INCLUDE_DIR="${ANDROID_PREFIX_INCLUDE}" \
-DOPENSSL_SSL_LIBRARY="${ANDROID_PREFIX_LIB}/libssl.a" \
-DOPENSSL_CRYPTO_LIBRARY="${ANDROID_PREFIX_LIB}/libcrypto.a" \
-DOPENSSL_VERSION="${version}" \
-DUNIT_TESTING=OFF \
-DWITH_EXAMPLES=OFF
make -C build-static $MAKEFLAGS
}
package(){
cd "${srcdir}/libssh-${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 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-06 00:21:40 | Low | 2 |
| 2026-11-05 00:01:40 | Low | 2 |
| 2026-11-04 00:25:23 | Low | 2 |
| 2026-11-03 00:01:00 | Low | 2 |
| 2026-11-02 00:26:00 | Low | 2 |
| 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 |