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-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |