@@ -0,0 +1,114 @@
1+diff -Naur fwupd-0.9.6-orig/data/meson.build fwupd-0.9.6/data/meson.build
2+--- fwupd-0.9.6-orig/data/meson.build 2017-08-03 05:45:02.000000000 -0400
3++++ fwupd-0.9.6/data/meson.build 2017-09-02 19:58:37.324596487 -0400
4+@@ -20,7 +20,7 @@
5+ )
6+
7+ install_data(['90-fwupd-devices.rules'],
8+- install_dir : join_paths(udev.get_pkgconfig_variable('udevdir'), 'rules.d')
9++ install_dir : join_paths(get_option('prefix'), 'lib', 'udev', 'rules.d')
10+ )
11+
12+ con2 = configuration_data()
13+@@ -52,7 +52,7 @@
14+ output : 'fwupd-offline-update.service',
15+ configuration : con2,
16+ install: true,
17+- install_dir: systemd.get_pkgconfig_variable('systemdsystemunitdir'),
18++ install_dir: join_paths(get_option('prefix'), 'lib', 'systemd', 'system'),
19+ )
20+ endif
21+
22+@@ -63,6 +63,6 @@
23+ output : 'fwupd.service',
24+ configuration : con2,
25+ install: true,
26+- install_dir: systemd.get_pkgconfig_variable('systemdsystemunitdir'),
27++ install_dir: join_paths(get_option('prefix'), 'lib', 'systemd', 'system'),
28+ )
29+ endif
30+diff -Naur fwupd-0.9.6-orig/libdfu/meson.build fwupd-0.9.6/libdfu/meson.build
31+--- fwupd-0.9.6-orig/libdfu/meson.build 2017-08-03 05:45:02.000000000 -0400
32++++ fwupd-0.9.6/libdfu/meson.build 2017-09-02 19:58:37.325596508 -0400
33+@@ -23,6 +23,10 @@
34+ giounix,
35+ libm,
36+ gusb,
37++ uuid,
38++ libarchive,
39++ soup,
40++ libgcab
41+ ]
42+
43+ if get_option('enable-libelf')
44+diff -Naur fwupd-0.9.6-orig/meson.build fwupd-0.9.6/meson.build
45+--- fwupd-0.9.6-orig/meson.build 2017-08-03 05:45:02.000000000 -0400
46++++ fwupd-0.9.6/meson.build 2017-09-02 19:59:07.406216716 -0400
47+@@ -124,6 +124,7 @@
48+ if polkit.version().version_compare('>= 0.114')
49+ conf.set('HAVE_POLKIT_0_114', '1')
50+ endif
51++libgcab = dependency('libgcab-1.0')
52+ gudev = dependency('gudev-1.0')
53+ appstream_glib = dependency('appstream-glib', version : '>= 0.6.9')
54+ gusb = dependency('gusb', version : '>= 0.2.9')
55+@@ -200,7 +201,7 @@
56+ 'fwupd-plugins-2')
57+ conf.set_quoted('PLUGINDIR', plugin_dir)
58+
59+-conf.set_quoted('SYSCONFDIR', get_option('sysconfdir'))
60++conf.set_quoted('SYSCONFDIR', '/etc')
61+ conf.set_quoted('BINDIR',
62+ join_paths(get_option('prefix'),
63+ get_option('bindir')))
64+@@ -227,6 +228,9 @@
65+ plugin_deps += gmodule
66+ plugin_deps += gusb
67+ plugin_deps += soup
68++plugin_deps += libarchive
69++plugin_deps += uuid
70++plugin_deps += libgcab
71+
72+ subdir('data')
73+ subdir('docs')
74+@@ -255,6 +259,3 @@
75+ endif
76+ endif
77+
78+-if get_option('enable-systemd')
79+- meson.add_install_script('meson_post_install.sh', systemd.get_pkgconfig_variable('systemdsystemunitdir'), localstatedir)
80+-endif
81+diff -Naur fwupd-0.9.6-orig/po/make-images.sh fwupd-0.9.6/po/make-images.sh
82+--- fwupd-0.9.6-orig/po/make-images.sh 2017-08-03 05:45:02.000000000 -0400
83++++ fwupd-0.9.6/po/make-images.sh 2017-09-02 19:58:37.328596570 -0400
84+@@ -7,6 +7,7 @@
85+ #
86+ install -m 0755 -d ${MESON_INSTALL_DESTDIR_PREFIX}/share/locale/
87+ ${MESON_SOURCE_ROOT}/po/make-images "Installing firmware update…" ${MESON_INSTALL_DESTDIR_PREFIX}/share/locale/ ${MESON_SOURCE_ROOT}/po/LINGUAS
88++shopt -s nullglob
89+ for x in ${MESON_INSTALL_DESTDIR_PREFIX}/share/locale/*/LC_IMAGES/*.bmp ; do
90+ gzip -f ${x}
91+ done
92+diff -Naur fwupd-0.9.6-orig/src/meson.build fwupd-0.9.6/src/meson.build
93+--- fwupd-0.9.6-orig/src/meson.build 2017-08-03 05:45:02.000000000 -0400
94++++ fwupd-0.9.6/src/meson.build 2017-09-02 19:58:37.329596590 -0400
95+@@ -24,6 +24,9 @@
96+ polkit,
97+ soup,
98+ sqlite,
99++ uuid,
100++ libarchive,
101++ libgcab
102+ ],
103+ link_with : fwupd,
104+ c_args : [
105+@@ -73,6 +76,9 @@
106+ gpgme,
107+ gpgerror,
108+ valgrind,
109++ uuid,
110++ libarchive,
111++ libgcab
112+ ],
113+ link_with : fwupd,
114+ c_args : [