archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / fwupd / repos / community-x86_64 / PKGBUILD
blob9ab089e6be350248c23a8c4610443d14f76fb98c
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
2 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 # Maintainer: Frederik Schwan <freswa at archlinux dot org>
4 # Contributor: Mirco Tischler <mt-ml at gmx dot de>
6 pkgname=fwupd
7 pkgver=1.9.1
8 pkgrel=1
9 pkgdesc="Simple daemon to allow session software to update firmware"
10 arch=(x86_64)
11 url="https://github.com/fwupd/fwupd"
12 license=(LGPL)
13 depends=(libxmlb efivar python libsmbios libgusb
14          polkit shared-mime-info tpm2-tss flashrom
15          libjcat fwupd-efi gcab hicolor-icon-theme
16          bluez gnutls
17          libarchive.so libcurl.so libcbor.so
18          libjson-glib-1.0.so libgudev-1.0.so libmm-glib.so
19          libqmi-glib.so libprotobuf-c.so)
20 optdepends=(
21     'udisks2: UEFI firmware upgrade support'
23 makedepends=(meson valgrind gobject-introspection gi-docgen
24              python-cairo noto-fonts noto-fonts-cjk python-gobject vala
25              bash-completion python-pillow pandoc gnu-efi-libs)
26 checkdepends=(umockdev)
27 provides=(libfwupd.so)
28 backup=('etc/fwupd/daemon.conf'
29         'etc/fwupd/redfish.conf'
30         'etc/fwupd/remotes.d/dell-esrt.conf'
31         'etc/fwupd/remotes.d/fwupd-tests.conf'
32         'etc/fwupd/remotes.d/lvfs-testing.conf'
33         'etc/fwupd/remotes.d/lvfs.conf'
34         'etc/fwupd/remotes.d/vendor-directory.conf'
35         'etc/fwupd/remotes.d/vendor.conf'
36         'etc/fwupd/thunderbolt.conf'
37         'etc/fwupd/uefi_capsule.conf'
39 source=("https://github.com/fwupd/fwupd/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc})
40 sha512sums=('70a02c52dbaa4e06502fc64c486301bcb5c0f9b0d2cf80aebe5c0ec48f340e04702d43f0a1d5cb44a21d8c4ddb92eb90788fd03daa7494a1f0b3a82b36a2c940'
41             'SKIP')
42 b2sums=('2ed50bd698d145fe6819c700688ee865be8d65c531ca20b3b02472191710142485f2b8b5b559798fe93304d2a281b96a6600449112f7e81b67b59d95e38971ab'
43         'SKIP')
44 validpgpkeys=(163EB50119225DB3DF8F49EA17ACBA8DFA970E17) # Richard Hughes <richard@hughsie.com>
46 build() {
47     arch-meson ${pkgname}-${pkgver} build \
48         -D b_lto=false \
49         -D docs=enabled \
50         -D plugin_intel_spi=true \
51         -D supported_build=enabled \
52         -D efi_binary=false
53     meson compile -C build
56 check() {
57     meson test -C build
60 package() {
61     DESTDIR="${pkgdir}" meson install -C build
62     # Fixup mode to match polkit
63     install -d -o root -g 102 -m 750 "${pkgdir}"/usr/share/polkit-1/rules.d
64     # Remove the tests
65     rm -r "${pkgdir}"/usr/share/installed-tests/
66     mv "${pkgdir}"/usr/bin/{,fwupd-}dbxtool
67     mv "${pkgdir}"/usr/share/man/man1/{,fwupd-}dbxtool.1
68     # Remove msr module-load config as it is built-in
69     rm "${pkgdir}"/usr/lib/modules-load.d/fwupd-msr.conf
70     rmdir "${pkgdir}"/usr/lib/modules-load.d