perl-travel-status-de-hafas-git

LOW
maintainer dreieck 0 votes scanned 2026-10-20 00:10:31.152894
View on AUR
Why flagged

The package builds from source using git repositories hosted on the project maintainer's own domain and GitHub, which are plausibly official; the unverifiable sources with SKIP'd checksums are typical for git sources in AUR but do not introduce a high risk as they are part of the project's own development workflow.

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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 90%): The package builds from source using git repositories hosted on the project maintainer's own domain and GitHub, which are plausibly official; the unverifiable sources with SKIP'd checksums are typical for git sources in AUR but do not introduce a high risk as they are part of the project's own development workflow.

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:50 "${_perlmod}::git+https://git.finalrewind.org/${_perlmod}"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: dreieck
2
3_perlmod=Travel-Status-DE-HAFAS
4_pkgname=perl-travel-status-de-hafas
5pkgname="${_pkgname}-git"
6_pkgver='latest'
7epoch=1
8pkgver=6.25+r571.20260417.g9420100
9pkgrel=1
10pkgdesc='A commandline client for HAFAS-based arrival/departure monitors, e.g. ones provided by VRN or ÖBB. It shows arrivals or departures of trains as well as local transit services.'
11url='https://finalrewind.org/projects/Travel-Status-DE-HAFAS/'
12license=(
13 'Artistic-1.0-Perl'
14 'CC0-1.0'
15)
16arch=('any')
17depends=(
18 'perl>=5.14.0'
19 'perl-class-accessor'
20 'perl-datetime'
21 'perl-datetime-format-strptime'
22 'perl-getopt-long'
23 'perl-json'
24 'perl-list-moreutils'
25 'perl-lwp-protocol-https'
26)
27makedepends=(
28 'curl>8.7.1' # Because of https://bugs.gentoo.org/930633 / https://github.com/curl/curl/issues/13474
29 'git'
30 'perl-class-accessor>=0.16'
31 'perl-module-build'
32)
33checkdepends=(
34 'perl-file-slurp'
35 'perl-test-compile'
36 'perl-test-pod'
37)
38provides=(
39 "${_pkgname}=${pkgver}"
40)
41conflicts=(
42 "${_pkgname}"
43 "perl-travel-status-de-deutschebahn"
44)
45replaces=(
46 "perl-travel-status-de-deutschebahn-git" # See https://finalrewind.org/projects/Travel-Status-DE-HAFAS/release/6.16/
47)
48options=('!emptydirs')
49source=(
50 "${_perlmod}::git+https://git.finalrewind.org/${_perlmod}"
51 "transport-apis::git+https://github.com/public-transport/transport-apis.git"
52)
53sha256sums=(
54 'SKIP'
55 'SKIP'
56)
57
58prepare() {
59 cd "${srcdir}/${_perlmod}"
60
61 git submodule init
62 git config submodule.ext/transport-apis.url "${srcdir}/transport-apis"
63 git -c protocol.file.allow=always submodule update
64
65 git log > git.log
66}
67
68pkgver() {
69 cd "${srcdir}/${_perlmod}"
70 _descr="$(git describe --tags --long)"
71 _ver="$(printf '%s' "${_descr}" | awk -F '-' '{print $1}')"
72 _rev="r$(git rev-list --count HEAD)"
73 _hash="$(printf '%s' "${_descr}" | awk -F '-' '{print $3}')"
74 _date="$(git log -n 1 --format=tformat:%ci | awk '{print $1}' | tr -d '-')"
75 printf '%s\n' "${_ver}+${_rev}.${_date}.${_hash}"
76}
77
78build() {
79 cd "${srcdir}/${_perlmod}"
80 perl Build.PL installdirs=vendor destdir="${pkgdir}"
81 ./Build
82}
83
84check() {
85 cd "${srcdir}/${_perlmod}"
86 ./Build test
87}
88
89package() {
90 cd "${srcdir}/${_perlmod}"
91 ./Build install
92
93 install -D -v -m644 -t "${pkgdir}/usr/share/doc/${_pkgname}" git.log README.md Changelog
94 install -D -v -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" COPYING
95 install -D -v -m644 ext/transport-apis/license "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.git_submodule_transport-apis.CC0.txt"
96
97}
98

Scan history

Scanned at (UTC)SeverityRules
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
2026-10-12 00:18:51 Low 2
2026-10-11 00:26:05 Low 2
2026-10-10 00:11:52 Low 2
2026-10-09 00:05:33 Low 2
2026-10-08 00:28:03 Low 2
2026-10-07 00:21:34 Low 2
2026-10-06 00:13:36 Low 2
2026-10-05 00:08:03 Low 2
2026-10-04 00:18:08 Low 2
2026-10-03 00:23:04 Low 2
2026-10-02 00:00:32 Low 2
2026-10-01 00:02:06 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