plutosvg-git

MEDIUM
maintainer dreieck 0 votes scanned 2026-09-05 16:00:23.828148
View on AUR
Why flagged

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

Triggered rules

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:43 "${_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="plutosvg"
4_pkgname="${_gitname}"
5pkgname="${_pkgname}-git"
6pkgver=0.0.8.r156.20260518.fd8a080
7pkgrel=1
8pkgdesc="A compact and efficient SVG rendering library written 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 'plutovg'
23)
24makedepends=(
25 'cmake'
26 'freetype2'
27 'git'
28 'plutovg'
29)
30optdepends=(
31 "freetype2: For Freetype integration, and for example '/usr/bin/emoji2png'."
32)
33checkdepends=()
34provides=(
35 "${_pkgname}=${pkgver}"
36 "libplutosvg.so"
37)
38conflicts=(
39 "${_pkgname}"
40)
41
42source=(
43 "${_pkgname}::git+https://${_githost}/${_gituser}/${_gitname}.git"
44)
45sha256sums=(
46 'SKIP'
47)
48options+=('!lto') # Otherwise build of software depending on this likely throws linking errors.
49
50prepare() {
51 cd "${srcdir}/${_pkgname}"
52 git log > "${srcdir}/git.log"
53}
54
55pkgver() {
56 cd "${srcdir}/${_pkgname}"
57
58 _ver="$(git describe --tags | sed -E -e 's|^[vV]||' -e 's|\-g[0-9a-f]*$||' | tr '-' '+')"
59 _rev="$(git rev-list --count HEAD)"
60 _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
61 _hash="$(git rev-parse --short HEAD)"
62
63 if [ -z "${_ver}" ]; then
64 error "Version could not be determined."
65 return 1
66 else
67 printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
68 fi
69}
70
71build() {
72 cd "${srcdir}"
73
74 cmake -S "${_pkgname}" -B build \
75 -DCMAKE_BUILD_TYPE=Release \
76 -DCMAKE_INSTALL_PREFIX=/usr \
77 -DBUILD_SHARED_LIBS=ON \
78 -DBUILD_STATIC_LIBS=ON \
79 -DFETCHCONTENT_FULLY_DISCONNECTED=ON \
80 -DFETCHCONTENT_QUIET=OFF \
81 -DFETCHCONTENT_UPDATES_DISCONNECTED=ON \
82 -DPLUTOSVG_BUILD_EXAMPLES=ON \
83 -DPLUTOSVG_ENABLE_FREETYPE=ON \
84 -Dplutovg_DIR=/usr/lib/cmake/plutovg \
85 -DCMAKE_VERBOSE_MAKEFILE=ON
86
87 make -C build
88}
89
90package() {
91 cd "${srcdir}"
92
93 make -C build DESTDIR="${pkgdir}" install
94
95 for _exampleexecutable in emoji2png svg2png; do
96 install -Dvm755 "build/examples/${_exampleexecutable}" "${pkgdir}/usr/bin/${_exampleexecutable}-plutosvg"
97 done
98
99 make -C build/examples clean # Remove built executable in examples directory.
100
101 _docfiles=(
102 "${srcdir}/git.log"
103 "${srcdir}/${_pkgname}/README.md"
104 )
105 _docdirs=(
106 "${srcdir}/build/examples"
107 )
108 _manfiles=()
109 _infofiles=()
110 _licensefiles=(
111 "${srcdir}/${_pkgname}/LICENSE"
112 )
113 printf '%s\n' " --> installing documentation ..."
114 for _docfile in "${_docfiles[@]}"; do
115 install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docfile}")"
116 done
117 for _docdir in "${_docdirs[@]}"; do
118 cp -rv "${_docdir}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docdir}")"
119 done
120 for _manfile in "${_manfiles[@]}"; do
121 _section="$(basename "${_manfile}" .gz | sed -E -e 's|^.*\.([^.]*)$|\1|')"
122 install -D -v -m644 "docs/build/man/${_manfile}" "${pkgdir}/usr/share/man/man${_section}/$(basename "${_manfile}")"
123 done
124 for _infofile in "${_infofiles[@]}"; do
125 install -D -v -m644 "${_infofile}" "${pkgdir}/usr/share/info/$(basename "${_infofile}")"
126 done
127 printf '%s\n' " --> installing license ..."
128 for _licensefile in "${_licensefiles[@]}"; do
129 install -D -v -m644 "${_licensefile}" "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")"
130 ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_licensefile}")"
131 done
132}
133
134

Changes since previous scan

--- PKGBUILD @ 2026-06-20 00:18
+++ PKGBUILD @ 2026-09-05 16:00
@@ -3,7 +3,7 @@
_gitname="plutosvg"
_pkgname="${_gitname}"
pkgname="${_pkgname}-git"
-pkgver=0.0.7+13.r138.20251231.889affa
+pkgver=0.0.8.r156.20260518.fd8a080
pkgrel=1
pkgdesc="A compact and efficient SVG rendering library written in C."
arch=(

Scan history

Scanned at (UTC)SeverityRules
2026-09-05 16:00:23 Medium 1
2026-06-20 00:18:46 Clean 2
2026-06-19 23:51:18 Clean 2
2026-06-19 19:07:35 Low 2
2026-06-18 16:11:54 Medium 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion