blob: 2b3fb8a03f5ea3eb2cfa62a6380bc175b2142a69 (
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
|
# Maintainer: Jonathon Fernyhough <jonathon+m2x.dev>
# Contributor: Luke Horwell <code@horwell.me>
# Contributor: Tomasz Gąsior <tomaszgasior.pl>
# This file is based on original PKGBUILD of GTK3 package.
# https://git.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/gtk3
__arch_pkg_commit="194c90c257f7abf1094736dffd3d6152f8b0cb00"
_gtkver=3.24.33
_gtk3_classic_commit="221a3257c5d804520e3a26270ac2fc4673d39eb4"
pkgbase=gtk3-classic
pkgname=($pkgbase lib32-$pkgbase)
pkgver=${_gtkver}
pkgrel=1
pkgdesc="GTK3 patched to provide a more classic experience"
url="https://github.com/lah7/gtk3-classic"
conflicts=(gtk3 gtk3-typeahead gtk3-print-backends)
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)
makedepends=(
git gobject-introspection libcanberra gtk-doc sassc libcups meson quilt
atk cairo libxcursor libxinerama libxrandr libxi libepoxy gdk-pixbuf2 fribidi
libxcomposite libxdamage pango shared-mime-info at-spi2-atk wayland libxkbcommon
json-glib librsvg wayland-protocols desktop-file-utils mesa gtk-update-icon-cache
adwaita-icon-theme cantarell-fonts
lib32-atk lib32-cairo lib32-libxcursor lib32-libxinerama lib32-libxrandr lib32-libxi
lib32-libepoxy lib32-gdk-pixbuf2 lib32-fribidi lib32-libxcomposite lib32-libxdamage
lib32-pango lib32-at-spi2-atk lib32-wayland lib32-libxkbcommon lib32-json-glib
lib32-librsvg lib32-mesa lib32-libcups lib32-krb5 lib32-e2fsprogs
)
install=gtk3.install
source=(
git+$url.git#commit=$_gtk3_classic_commit
"https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-$_gtkver.tar.xz"
"gtk-query-immodules-3.0.hook::https://raw.githubusercontent.com/archlinux/svntogit-packages/$__arch_pkg_commit/trunk/gtk-query-immodules-3.0.hook"
settings.ini
)
sha256sums=('SKIP'
'588b06522e25d1579e989b6f9d8a1bdbf2fe13cde01a04e904ff346a225e7801'
'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_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
# 64-bit
arch-meson gtk+-$_gtkver build \
-D broadway_backend=true \
-D colord=no \
-D demos=true \
-D examples=false \
-D tests=false \
-D installed_tests=false
ninja -C build
# 32-bit
export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
export PKG_CONFIG_PATH="/usr/share/pkgconfig"
CFLAGS+=" -m32"
CXXFLAGS+=" -m32"
LDFLAGS+=" -m32"
linux32 arch-meson gtk+-$_gtkver build32 \
-D broadway_backend=true \
-D colord=no \
-D demos=false \
-D examples=false \
-D introspection=false \
-D tests=false \
-D installed_tests=false \
-D libdir=/usr/lib32
linux32 ninja -C build32
}
package_gtk3-classic()
{
depends=(
atk cairo libxcursor libxinerama libxrandr libxi libepoxy gdk-pixbuf2 fribidi
libxcomposite libxdamage pango shared-mime-info at-spi2-atk wayland libxkbcommon
json-glib librsvg wayland-protocols desktop-file-utils mesa gtk-update-icon-cache
)
optdepends=(
'libcups: printers in printing dialog'
'dconf: default GSettings backend'
'libcanberra: sounds events'
'adwaita-icon-theme: default icon theme'
'cantarell-fonts: default font'
)
DESTDIR="$pkgdir" meson install -C build
install -Dt "$pkgdir/usr/share/gtk-3.0" -m644 settings.ini
install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 gtk-query-immodules-3.0.hook
rm "$pkgdir/usr/bin/gtk-update-icon-cache"
}
package_lib32-gtk3-classic()
{
pkgdesc="GTK3 patched to provide a more classic experience (32-bit)"
depends=(
lib32-atk lib32-cairo lib32-libxcursor lib32-libxinerama lib32-libxrandr lib32-libxi
lib32-libepoxy lib32-gdk-pixbuf2 lib32-fribidi lib32-libxcomposite lib32-libxdamage
lib32-pango lib32-at-spi2-atk lib32-wayland lib32-libxkbcommon lib32-json-glib
lib32-librsvg lib32-mesa lib32-libcups lib32-krb5 lib32-e2fsprogs
"gtk3-classic>=$pkgver"
)
conflicts=("lib32-gtk3")
provides=("lib32-gtk3=$pkgver")
DESTDIR="$pkgdir" linux32 meson install -C build32
rm -fr "$pkgdir"/etc
rm -fr "$pkgdir"/usr/{bin,share,include}
}
|