plutovg-git
MEDIUM
maintainer dreieck
0 votes
scanned 2026-09-05 16:00:23.828148
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: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}"
5
pkgname="${_pkgname}-git"
6
pkgver=1.3.3+14.r313.20260716.f63f9b5
7
pkgrel=1
8
pkgdesc="A standalone 2D vector graphics library in C."
9
arch=(
10
'x86_64'
11
'i686'
12
'aarch64'
13
'armv6h'
14
'armv7h'
15
)
16
_githost='github.com'
17
_gituser='sammycage'
18
url="https://${_githost}/${_gituser}/${_gitname}"
19
license=("MIT")
20
depends=(
21
'glibc'
22
)
23
makedepends=(
24
'cmake'
25
'git'
26
)
27
optdepends=()
28
checkdepends=()
29
provides=(
30
"${_pkgname}=${pkgver}"
31
"libplutovg.so"
32
)
33
conflicts=(
34
"${_pkgname}"
35
)
36
options+=('!lto') # Otherwise build of 'plutosvg' throws linking errors.
37
38
source=(
39
"${_pkgname}::git+https://${_githost}/${_gituser}/${_gitname}.git"
40
)
41
sha256sums=(
42
'SKIP'
43
)
44
45
prepare() {
46
cd "${srcdir}/${_pkgname}"
47
git log > "${srcdir}/git.log"
48
}
49
50
pkgver() {
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
66
build() {
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
79
package() {
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
Changes since previous scan
--- PKGBUILD @ 2026-06-19 19:07+++ PKGBUILD @ 2026-09-05 16:00@@ -3,7 +3,7 @@ _gitname="plutovg" _pkgname="${_gitname}" pkgname="${_pkgname}-git"-pkgver=1.3.2.r287.20251118.5695a71+pkgver=1.3.3+14.r313.20260716.f63f9b5 pkgrel=1 pkgdesc="A standalone 2D vector graphics library in C." arch=(Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-05 16:00:23 | Medium | 1 |
| 2026-06-19 19:07:35 | Clean | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |