blob: 651574956c0c448b7df8a4d713c1f62cae8cb638 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
# Maintainer: Luke Horwell <code@horwell.me>
# Contributor: Jonathon Fernyhough <jonathon+m2x.dev>
# Contributor: Tomasz Gąsior <tomaszgasior.pl>
# This file is based on original PKGBUILD of GTK3 package.
# https://gitlab.archlinux.org/archlinux/packaging/packages/gtk3/-/commits/main
__arch_pkg_commit="8546d3057e3037ffdd3526a329742951b35892b3"
_gtkver=3.24.48
_gtk3_classic_commit="bc3adeb62c575c96c80cab1613c5eb83e2bcd522"
pkgbase=gtk3-classic
pkgname=($pkgbase)
pkgver=${_gtkver}
pkgrel=2
pkgdesc="Patched GTK+3 that provides a more classic experience"
url="https://github.com/lah7/gtk3-classic"
conflicts=(
gtk3
gtk3-typeahead
gtk3-print-backends
gtk3-nocsd
gtk3-nocsd-git
gtk3-nocsd-legacy-git
)
provides=(
gtk3=$_gtkver
gtk3-typeahead=$_gtkver
gtk3-mushrooms=$_gtkver
gtk3-print-backends
libgtk-3.so
libgdk-3.so
libgailutil-3.so
)
arch=(x86_64)
license=(LGPL-2.1-or-later)
depends=(
at-spi2-core
cairo
desktop-file-utils
fribidi
gdk-pixbuf2
gtk-update-icon-cache
libepoxy
librsvg
libxcomposite
libxcursor
libxdamage
libxi
libxinerama
libxkbcommon
libxrandr
pango
shared-mime-info
wayland
)
optdepends=(
'adwaita-icon-theme: default icon theme'
'cantarell-fonts: default font'
'colord: color management support'
'dconf: default GSettings backend'
'libcups: printer support in print dialog'
)
makedepends=(
cairo
cantarell-fonts
desktop-file-utils
fribidi
gdk-pixbuf2
git
glib2-devel
gobject-introspection
gtk-update-icon-cache
hicolor-icon-theme
libcups
libegl
libepoxy
libgl
librsvg
libxcomposite
libxcursor
libxdamage
libxi
libxinerama
libxkbcommon
libxrandr
meson
pango
python-packaging
quilt
sassc
shared-mime-info
wayland
wayland-protocols
)
install=gtk3.install
source=(
git+$url.git#commit=$_gtk3_classic_commit
"https://gitlab.gnome.org/GNOME/gtk/-/archive/$_gtkver/gtk-$_gtkver.tar.gz"
"gtk-query-immodules-3.0.hook::https://gitlab.archlinux.org/archlinux/packaging/packages/gtk3/-/raw/$__arch_pkg_commit/gtk-query-immodules-3.0.hook"
settings.ini
)
sha256sums=('62720cd099d373afbbd8926c550b91cb8d47bf88690aed78c0c63cf0d3d1435e'
'fa02692d8cc717bdadbba15f5b5ba0849f2135ee7ed71edd1da27013152500da'
'a0319b6795410f06d38de1e8695a9bf9636ff2169f40701671580e60a108e229'
'01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202')
prepare()
{
cd gtk-$_gtkver
QUILT_PATCHES=../$pkgbase quilt push -av
rm -f "$srcdir"/gtk-"$_gtkver"/gtk/theme/Adwaita/gtk-contained{,-dark}.css
cat "$srcdir/$pkgbase/smaller-adwaita.css" | tee -a "$srcdir"/gtk-"$_gtkver"/gtk/theme/Adwaita/gtk-contained{,-dark}.css > /dev/null
}
build()
{
CFLAGS+=" -DG_DISABLE_CAST_CHECKS"
# 64-bit
arch-meson gtk-$_gtkver build \
-D broadway_backend=true \
-D colord=auto \
-D demos=false \
-D examples=false \
-D introspection=true \
-D tests=false \
-D installed_tests=false
ninja -C build
}
package_gtk3-classic()
{
DESTDIR="$pkgdir" meson install -C build
install -Dm644 settings.ini -t "$pkgdir/usr/share/gtk-3.0"
install -Dm644 gtk-query-immodules-3.0.hook -t "$pkgdir/usr/share/libalpm/hooks"
rm "$pkgdir/usr/bin/gtk-update-icon-cache"
}
|