srcml
The package builds from source tarballs, including one from a non-standard host (a university IP), but it is the project's own source and build process; the worst case of a swapped source is limited to code execution during build, which is within expected AUR risk.
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 package builds from source tarballs, including one from a non-standard host (a university IP), but it is the project's own source and build process; the worst case of a swapped source is limited to code execution during build, which is within expected AUR risk.
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:14
source=("$pkgname-$pkgver.tar.gz::http://131.123.42.38/lmcrs/v${pkgver}/${_srcname}-${pkgver}.tar.gz" -
PKGBUILD:16
"https://www.antlr2.org/download/antlr-${_antlr_ver}.tar.gz"
PKGBUILD
2 offending line(s) highlighted# Maintainer: Jiachen YANG <farseerfc@gmail.com>
_srcname=srcML
_antlr_ver=2.7.7
pkgname=srcml
pkgver=1.0.0
pkgrel=1
pkgdesc="commandline and library for srcML, an XML representation for source code"
arch=(x86_64)
url="https://www.srcml.org/"
license=('GPL')
depends=(libxml2 libxslt libarchive boost-libs curl openssl)
makedepends=(cmake boost man2html docbook2x 'java-environment' 'sh' 'antlr2')
optdepends=()
source=("$pkgname-$pkgver.tar.gz::http://131.123.42.38/lmcrs/v${pkgver}/${_srcname}-${pkgver}.tar.gz"
"arch-build.patch"
"https://www.antlr2.org/download/antlr-${_antlr_ver}.tar.gz"
"gcc4.4.patch")
md5sums=('f910de40b1b7fa9a6928e7cd3d75cd2b'
'8aaad26040808d2a0ac0793999521e9e'
'01cc9a2a454dd33dcd8c856ec89af090'
'8574c93f40e6477e83c29f9b07de49da')
prepare() {
# copied from antlr2 package, rebuild with -fPIC
cd "${srcdir}/antlr-${_antlr_ver}"
patch -Np0 -i "${srcdir}"/gcc4.4.patch
cd "${srcdir}/${_srcname}-${pkgver}"
patch -Np1 -i ../arch-build.patch
}
build() {
# copied from antlr2 package, rebuild with -fPIC
cd "${srcdir}/antlr-${_antlr_ver}"
./configure --prefix=/usr \
--disable-examples \
--disable-csharp
export LDFLAGS="$LDFLAGS -fPIC"
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
make
cd "${srcdir}/${_srcname}-${pkgver}"
mkdir build
cd build
export _antlr_ver
export ANTLR_LIBRARY="${srcdir}/antlr-${_antlr_ver}/lib/cpp/src/libantlr.a"
cmake .. \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DBUILD_LIBSRCML_STATIC=OFF \
-DLINK_LIBSRCML_STATIC=OFF \
-DANTLR_LIBRARY="${srcdir}/antlr-${_antlr_ver}/lib/cpp/src/libantlr.a"
make
}
package() {
cd "$_srcname-${pkgver}"
cd build
make DESTDIR="$pkgdir/" install
}
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 |