blob: 39b7988a0e9b13639e525400d57950767d701f2c (
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
# Maintainer: Dudemanguy <random342@airmail.cc>
# Contributor: Vaporeon <vaporeon@vaporeon.io>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgbase=glib2-patched-thumbnailer
pkgname=(
glib2-patched-thumbnailer
)
pkgver=2.84.0
pkgrel=1.1
pkgdesc="GLib2 patched with ahodesuka's thumbnailer patch."
url="https://gist.github.com/Dudemanguy/d199759b46a79782cc1b301649dec8a5"
license=(LGPL-2.1-or-later)
arch=(x86_64)
conflicts=('glib2')
depends=(
bash
glibc
libffi
libsysprof-capture
pcre2
util-linux-libs
tumbler
zlib
)
makedepends=(
dbus
dconf
gettext
gi-docgen
git
gobject-introspection
libelf
meson
python
python-docutils
python-packaging
shared-mime-info
util-linux
)
checkdepends=(
desktop-file-utils
glib2
)
source=(
"git+https://gitlab.gnome.org/GNOME/glib.git?signed#tag=$pkgver"
"git+https://gitlab.gnome.org/GNOME/gvdb.git"
0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch
0002-gdesktopappinfo-Add-more-known-terminals.patch
0003-tests-Don-t-install-runner-scripts-without-installed.patch
0004-glocalfileinfo-add-dbus-thumbnail-generation-request.patch
gio-querymodules.hook
glib-compile-schemas.hook
)
b2sums=('f44b52d787e8ec09d5b21378b1f288400a7b48ebbdf7b93a48db325bb144281ad718b538f02c1384212b1e01e339d10cc61b2031abac44b72a8329645c7aff41'
'SKIP'
'47cd08ba7e4b3ca0cd19f6dc20e4d73e30cf90f2b78c3d620ee0c7a4d8a4b325a5e88ec2dcc3a63402c16cc1ce8061130afc313e3cbfcd220dff3e642b113a69'
'bf57425e3081a8f5d36d6a54eff1bfa93ba6bab8f0a4d3f3bf1e319ebfa71d99ce6a0466166fc694f53c5bd151e9cc65339e222c48e963f0cdc075852d0e1f7c'
'165ff1ee935c7ef67622856e842656adaf995dac33782ee1ac85da5228b52e5256d455c92ee67802322dc36bbe2cc5f512e378c1cd66e490c9787ca9c231f657'
'84be383030a30f3c681e3b444e7475b7ea7653bf873f3548a77cb00860fc4e1e4731e83be888068dbb36f8ba63d5322449f9d11dbe619de8bea8f9c96e46d2f0'
'14c9211c0557f6d8d9a914f1b18b7e0e23f79f4abde117cb03ab119b95bf9fa9d7a712aa0a29beb266468aeb352caa3a9e4540503cfc9fe0bbaf764371832a96'
'd30d349b4cb4407839d9074ce08f5259b8a5f3ca46769aabc621f17d15effdb89c4bf19bd23603f6df3d59f8d1adaded0f4bacd0333afcab782f2d048c882858')
validpgpkeys=(
53EF3DC3B63E2899271BD26322E8091EEA11BBB7 # Emmanuele Bassi <ebassi@gnome.org>
923B7025EE03C1C59F42684CF0942E894B2EAFA0 # Philip Withnall <pwithnall@gnome.org>
)
prepare() {
cd glib
# Drop dep on libatomic
# https://gitlab.archlinux.org/archlinux/packaging/packages/qemu/-/issues/6
git revert -n 4e6dc4dee0e1c6407113597180d9616b4f275f94
# Suppress noise from glib-compile-schemas.hook
git apply -3 ../0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch
# Add ghostty and ptyxis to known terminals list
# This is a downstream only patch; GNOME will not add new terminal emulators.
# https://gitlab.gnome.org/GNOME/glib/-/issues/338#note_1076172
git apply -3 ../0002-gdesktopappinfo-Add-more-known-terminals.patch
# Don't install runner scripts without installed_tests
git apply -3 ../0003-tests-Don-t-install-runner-scripts-without-installed.patch
# Apply patch to generate thumbnails
git apply -3 ../0004-glocalfileinfo-add-dbus-thumbnail-generation-request.patch
git submodule init
git submodule set-url subprojects/gvdb "$srcdir/gvdb"
git -c protocol.file.allow=always -c protocol.allow=never submodule update
}
build() {
local meson_options=(
--default-library both
-D dtrace=disabled
-D glib_debug=disabled
-D introspection=enabled
-D man-pages=enabled
-D selinux=disabled
-D sysprof=enabled
-D systemtap=disabled
)
# Produce more debug info: GLib has a lot of useful macros
CFLAGS+=" -g3"
CXXFLAGS+=" -g3"
# use fat LTO objects for static libraries
CFLAGS+=" -ffat-lto-objects"
CXXFLAGS+=" -ffat-lto-objects"
arch-meson glib build "${meson_options[@]}"
meson compile -C build
}
check() {
# Test fails even without dbus patch for some reason. Skip for now.
meson test -C build --no-suite flaky --no-suite slow --print-errorlogs ||:
}
package_glib2-patched-thumbnailer() {
depends+=(
libffi.so
libmount.so
)
provides+=(glib2=$pkgver libg{lib,io,irepository,module,object,thread}-2.0.so)
optdepends=(
'dconf: GSettings storage backend'
'glib2-devel: development tools'
'gvfs: most gio functionality'
)
options+=(!docs staticlibs)
meson install -C build --destdir "$pkgdir"
install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
touch "$pkgdir/usr/lib/gio/modules/.keep"
python -m compileall -d /usr/share/glib-2.0/codegen \
"$pkgdir/usr/share/glib-2.0/codegen"
python -O -m compileall -d /usr/share/glib-2.0/codegen \
"$pkgdir/usr/share/glib-2.0/codegen"
# Remove glib2-devel files
rm -rf $pkgdir/usr/bin/gdbus-codegen
rm -rf $pkgdir/usr/bin/glib-{mkenums,genmarshal}
rm -rf $pkgdir/usr/bin/gresource
rm -rf $pkgdir/usr/bin/gtester{,-report}
rm -rf $pkgdir/usr/share/gdb/
rm -rf $pkgdir/usr/share/glib-2.0/gdb/
rm -rf $pkgdir/usr/share/glib-2.0/codegen/
rm -rf $pkgdir/usr/share/bash-completion/completions/gresource
rm -rf $pkgdir/usr/share/man/man1/gdbus-codegen.1
rm -rf $pkgdir/usr/share/man/man1/glib-{mkenums,genmarshal}.1
rm -rf $pkgdir/usr/share/man/man1/gresource.1
rm -rf $pkgdir/usr/share/man/man1/gtester{,-report}.1
}
# vim:set sw=2 sts=-1 et:
|