plutovg-git

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

The package builds from a GitHub source repository, which is a normal and expected practice for AUR packages; the non-whitelisted host is the project's own official source, and the code is compiled locally, posing no significant risk.

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 95%): The package builds from a GitHub source repository, which is a normal and expected practice for AUR packages; the non-whitelisted host is the project's own official source, and the code is compiled locally, posing no significant risk.

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:39 "${_pkgname}::git+https://${_githost}/${_gituser}/${_gitname}.git"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
2
3_gitname="plutovg"
4_pkgname="${_gitname}"
5pkgname="${_pkgname}-git"
6pkgver=1.3.3+14.r313.20260716.f63f9b5
7pkgrel=1
8pkgdesc="A standalone 2D vector graphics library in C."
9arch=(
10 'x86_64'
11 'i686'
12 'aarch64'
13 'armv6h'
14 'armv7h'
15)
16_githost='github.com'
17_gituser='sammycage'
18url="https://${_githost}/${_gituser}/${_gitname}"
19license=("MIT")
20depends=(
21 'glibc'
22)
23makedepends=(
24 'cmake'
25 'git'
26)
27optdepends=()
28checkdepends=()
29provides=(
30 "${_pkgname}=${pkgver}"
31 "libplutovg.so"
32)
33conflicts=(
34 "${_pkgname}"
35)
36options+=('!lto') # Otherwise build of 'plutosvg' throws linking errors.
37
38source=(
39 "${_pkgname}::git+https://${_githost}/${_gituser}/${_gitname}.git"
40)
41sha256sums=(
42 'SKIP'
43)
44
45prepare() {
46 cd "${srcdir}/${_pkgname}"
47 git log > "${srcdir}/git.log"
48}
49
50pkgver() {
51 cd "${srcdir}/${_pkgname}"
52
53 _ver="$(git describe --tags | sed -E -e 's|^[vV]||' -e 's|\-g[0-9a-f]*$||' | tr '-' '+')"
54 _rev="$(git rev-list --count HEAD)"
55 _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
56 _hash="$(git rev-parse --short HEAD)"
57
58 if [ -z "${_ver}" ]; then
59 error "Version could not be determined."
60 return 1
61 else
62 printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
63 fi
64}
65
66build() {
67 cd "${srcdir}"
68
69 cmake -S "${_pkgname}" -B build \
70 -DCMAKE_BUILD_TYPE=Release \
71 -DCMAKE_INSTALL_PREFIX=/usr \
72 -DPLUTOVG_BUILD_EXAMPLES=ON \
73 -DBUILD_SHARED_LIBS=ON \
74 -DCMAKE_VERBOSE_MAKEFILE=ON
75
76 make -C build
77}
78
79package() {
80 cd "${srcdir}"
81
82 make -C build DESTDIR="${pkgdir}" install
83 make -C build/examples clean # Remove built executable in examples directory.
84
85 _docfiles=(
86 "${srcdir}/git.log"
87 "${srcdir}/${_pkgname}/README.md"
88 "${srcdir}/${_pkgname}/smiley.png"
89 )
90 _docdirs=(
91 "${srcdir}/build/examples"
92 )
93 _manfiles=()
94 _infofiles=()
95 _licensefiles=(
96 "${srcdir}/${_pkgname}/LICENSE"
97 )
98 printf '%s\n' " --> installing documentation ..."
99 for _docfile in "${_docfiles[@]}"; do
100 install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docfile}")"
101 done
102 for _docdir in "${_docdirs[@]}"; do
103 cp -rv "${_docdir}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docdir}")"
104 done
105 for _manfile in "${_manfiles[@]}"; do
106 _section="$(basename "${_manfile}" .gz | sed -E -e 's|^.*\.([^.]*)$|\1|')"
107 install -D -v -m644 "docs/build/man/${_manfile}" "${pkgdir}/usr/share/man/man${_section}/$(basename "${_manfile}")"
108 done
109 for _infofile in "${_infofiles[@]}"; do
110 install -D -v -m644 "${_infofile}" "${pkgdir}/usr/share/info/$(basename "${_infofile}")"
111 done
112 printf '%s\n' " --> installing license ..."
113 for _licensefile in "${_licensefiles[@]}"; do
114 install -D -v -m644 "${_licensefile}" "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")"
115 ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_licensefile}")"
116 done
117}
118
119

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