gtk2-ng-git
maintainer andreas_baumann
· 8 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source is a Git repository from a plausible project-maintained host (git.devuan.org) used to build the project's own code, which is a normal and low-risk AUR practice despite the non-whitelisted domain.
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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a Git repository from a plausible project-maintained host (git.devuan.org) used to build the project's own code, which is a normal and low-risk AUR practice despite the non-whitelisted domain.
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:43
"git+https://git.devuan.org/Daemonratte/gtk2-ng"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Andreas Baumann <mail@andreasbaumann.cc>
2
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3
# Contributor: Jan de Groot <jgc@archlinux.org>
4
5
pkgname=gtk2-ng-git
6
pkgver=r22068.0675b80da
7
pkgrel=4
8
pkgdesc="GObject-based multi-platform GUI toolkit (community-maintained fork)"
9
url="https://www.gtk.org/"
10
arch=('x86_64' 'aarch64')
11
license=(LGPL-2.1-or-later)
12
depends=(
13
atk
14
cairo
15
desktop-file-utils
16
fontconfig
17
gdk-pixbuf2
18
glib2
19
glibc
20
gtk-update-icon-cache
21
libcups
22
librsvg
23
libx11
24
libxcomposite
25
libxcursor
26
libxdamage
27
libxext
28
libxfixes
29
libxi
30
libxinerama
31
libxrandr
32
libxrender
33
pango
34
shared-mime-info
35
)
36
makedepends=(
37
git
38
glib2-devel
39
gobject-introspection
40
gtk-doc
41
)
42
source=(
43
"git+https://git.devuan.org/Daemonratte/gtk2-ng"
44
gtk-query-immodules-2.0.hook
45
)
46
b2sums=('SKIP'
47
'9c531f9f605e1739e13c39c1cac22daddd9574f3082f18bcf0b9dfaa4c41f2485d55be03a9ed12fb4504d509f0d5ac63980a9d9349e3f80a06595c6430c78096')
48
provides=('gtk2' 'gtk2=2.24.33')
49
conflicts=('gtk2')
50
replaces=('gtk2')
51
52
pkgver() {
53
cd gtk2-ng
54
( set -o pipefail
55
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
56
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
57
)
58
}
59
60
prepare() {
61
cd gtk2-ng
62
sed -i '/AM_INIT_AUTOMAKE/s/]/ foreign]/' configure.ac
63
autoreconf -fvi
64
}
65
66
build() {
67
local configure_options=(
68
--prefix=/usr
69
--sysconfdir=/etc
70
--localstatedir=/var
71
--with-xinput=yes
72
--disable-gtk-doc
73
)
74
75
CFLAGS+=" -Wno-error=implicit-int -Wno-error=incompatible-pointer-types"
76
77
cd gtk2-ng
78
./configure "${configure_options[@]}"
79
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
80
make
81
}
82
83
package() {
84
optdepends=(
85
'adwaita-fonts: Default font'
86
'adwaita-icon-theme: Default icon theme'
87
'gnome-themes-extra-gtk2: Default widget theme'
88
'python: gtk-builder-convert'
89
)
90
provides+=(
91
libgailutil.so
92
libgdk-x11-2.0.so
93
libgtk-x11-2.0.so
94
)
95
install=gtk2.install
96
97
make -C gtk2-ng DESTDIR="$pkgdir" install
98
99
install -Dm644 /dev/stdin "$pkgdir/usr/share/gtk-2.0/gtkrc" <<END
100
gtk-icon-theme-name = "Adwaita"
101
gtk-theme-name = "Adwaita"
102
gtk-font-name = "Adwaita Sans 11"
103
END
104
105
install -Dm644 gtk-query-immodules-2.0.hook -t "$pkgdir/usr/share/libalpm/hooks"
106
107
# Built by GTK 4, shared with GTK 2/3
108
rm "$pkgdir/usr/bin/gtk-update-icon-cache"
109
}
110
111
# vim:set sw=2 sts=-1 et:
112
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |