diff options
Diffstat (limited to 'community/fwupd/APKBUILD')
-rw-r--r-- | community/fwupd/APKBUILD | 206 |
1 files changed, 77 insertions, 129 deletions
diff --git a/community/fwupd/APKBUILD b/community/fwupd/APKBUILD index 6356764ad37..ccd469b80c8 100644 --- a/community/fwupd/APKBUILD +++ b/community/fwupd/APKBUILD @@ -1,181 +1,129 @@ # Contributor: Timo Teräs <timo.teras@iki.fi> # Maintainer: Timo Teräs <timo.teras@iki.fi> pkgname=fwupd -pkgver=1.7.4 +pkgver=1.9.16 pkgrel=0 pkgdesc="Firmware update daemon" url="https://fwupd.org/" -# armhf, ppc64le, s390x and riscv64 blocked by polkit and gnu-efi +# armhf, ppc64le and s390x blocked by gnu-efi/fwupd-efi arch="all !armhf !ppc64le !s390x !riscv64" license="LGPL-2.1-or-later" depends="dbus" -makedepends="meson help2man linux-headers gnutls-utils tpm2-tss-esys - python3 py3-pillow py3-gobject3 py3-cairo ttf-opensans - glib-dev libgudev-dev libgusb-dev libgcab-dev json-glib-dev - gobject-introspection-dev vala cairo-dev fontconfig-dev freetype-dev - polkit-dev libxmlb-dev libarchive-dev libsoup-dev gpgme-dev eudev-dev - gnutls-dev efivar-dev elfutils-dev gnu-efi-dev tpm2-tss-dev elogind-dev - libjcat-dev py3-setuptools fwupd-efi-dev py3-markdown - modemmanager-dev libqmi-dev libmbim-dev protobuf-c-dev +makedepends=" + cairo-dev + efivar-dev + elfutils-dev + elogind-dev + eudev-dev + flashrom-dev + font-opensans + fontconfig-dev + freetype-dev + glib-dev + gnu-efi-dev + gnutls-dev + gnutls-utils + gobject-introspection-dev + gpgme-dev + help2man + json-glib-dev + libarchive-dev + libcbor-dev + libdrm-dev + libgcab-dev + libgudev-dev + libgusb-dev + libjcat-dev + libmbim-dev + libqmi-dev + libxmlb-dev + linux-headers + meson + modemmanager-dev + polkit-dev + protobuf-c-dev + py3-cairo + py3-gobject3 + py3-jinja2 + py3-markdown + py3-pillow + py3-setuptools + python3 + tpm2-tss-dev + tpm2-tss-esys + vala + " +checkdepends=" + bubblewrap + umockdev " -checkdepends="bubblewrap" subpackages=" + $pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang $pkgname-openrc $pkgname-fish-completion " -source="https://github.com/hughsie/fwupd/archive/$pkgver/fwupd-$pkgver.tar.gz +source="https://github.com/fwupd/fwupd/releases/download/$pkgver/fwupd-$pkgver.tar.xz $pkgname.initd - 0001-modem-manager-uninhibit-modem-after-upgrade.patch - " - -_plugins=" - acpi_dmar - acpi_facp - acpi_phat - amt - analogix - ata - bcm57xx - bios - ccgx - colorhug - cpu - cros_ec - dfu - dfu_csr - ebitdo - elanfp - elantp - emmc - ep963x - fastboot - fresco_pd - goodixmoc - hailuck - iommu - jabra - lenovo_thinklmi - linux_lockdown - linux_sleep - linux_swap - linux_tainted - logitech_bulkcontroller - logitech_hidpp - modem_manager - nitrokey - nvme - optionrom - parade_lspcon - pci_bcr - pci_mei - pixart_rf - powerd - realtek_mst - rts54hid - rts54hub - steelseries - superio - synaptics_cape - synaptics_cxaudio - synaptics_mst - synaptics_prometheus - synaptics_rmi - system76_launch - thelio_io - thunderbolt - tpm - uefi_capsule - uefi_dbx - uefi_pk - uefi_recovery - upower - vli - wacom_raw - wacom_usb + $pkgname.confd " # libsmbios is a library for DELL devices which are x86/x86_64-only case "$CARCH" in x86*) - _x86=true makedepends="$makedepends libsmbios-dev" - _plugins="$_plugins dell dell_dock dell_esrt msr" ;; - *) _x86=false;; + *) ;; esac -for _plugin in $_plugins; do - subpackages="$subpackages $pkgname-plugin-$_plugin:_split" -done -subpackages="$subpackages $pkgname-plugin-all:plugin_all" +case "$CARCH" in + x86*|aarch64) + # fwupd-efi needed for uefi-capsule + makedepends="$makedepends fwupd-efi-dev" + _uefi_capsule=enabled + ;; + *) + _uefi_capsule=disabled + ;; +esac build() { abuild-meson \ - -Dconsolekit=true \ + -Db_lto=true \ + -Dconsolekit=enabled \ -Dfirmware-packager=true \ - -Ddocs=none \ + -Ddocs=disabled \ + -Dhsi=enabled \ -Dlvfs=true \ -Dman=true \ - -Dplugin_amt=true \ - -Dplugin_dell=$_x86 \ - -Dplugin_msr=$_x86 \ - -Dplugin_dummy=false \ - -Dplugin_thunderbolt=true \ - -Dplugin_redfish=false \ - -Dplugin_nvme=true \ - -Dplugin_modem_manager=true \ - -Dplugin_uefi_capsule=true \ - -Dsystemd=false \ - -Delogind=true \ + -Dplugin_redfish=disabled \ + -Dplugin_uefi_capsule=$_uefi_capsule \ + -Dsystemd=disabled \ + -Delogind=enabled \ -Dtests=true \ -Dudevdir=/lib/udev \ . output - # HACK: meson seems to not be running the custom generations in the correct - # order, causing the build to fail because of the missing headers, the - # second one generates .c and .h files - ninja -C output libfwupdplugin/fu-hash.h - ninja -C output src/fwupdtool.p/meson-generated_.._fwupd-resources.c.o - - meson compile ${JOBS:+-j ${JOBS}} -C output + meson compile -C output } check() { # tests fail if usb is not available [ -e /dev/bus/usb ] || return 0 - meson test --no-rebuild -v -C output + meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - - mkdir -p "$pkgdir"/usr/share/fish - mv "$pkgdir"/usr/share/fish/vendor_completions.d "$pkgdir"/usr/share/fish/completions -} - -_split() { - local plugin="${subpkgname##*-}" - pkgdesc="$pkgdesc ($plugin plugin)" - - amove usr/lib/fwupd-plugins-5/libfu_plugin_$plugin.so -} - -plugin_all() { - pkgdesc="$pkgdesc (plugin meta package)" - mkdir -p "$subpkgdir" - - for _plugin in $_plugins; do - depends="$depends $pkgname-plugin-$_plugin" - done + install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } sha512sums=" -fa7195e2873a55fe544636c639597b4b2bac0855b10df4fac075ce377b87ae2aa2ccd86fb173379d39ebff542acca33e97234fd6c946e12b212dcf88b5f378a1 fwupd-1.7.4.tar.gz -4add6954bb3581b371d6105addde819cd41834d33293fe7362dbab4e0dccf486e2bbc96d5822fcb729ca568739cc5572c8e30d3db220f4476befbdc85ba8457b fwupd.initd -90a333b4a4bc583416970b29cc189fc6b4d6a3ac9b5aa9ba6a670014a115263e8aa911b1ad894d1a65574a9f7cf60cf615556020a953da026ae1c5748afafca8 0001-modem-manager-uninhibit-modem-after-upgrade.patch +e373f17a8d946b07d6f299353949dfc503138c4198a87272018524a39598f3fbd8c381dd13d74469e296a143071cc9e739b3774d9eda8ae9557760fef0a02bb5 fwupd-1.9.16.tar.xz +2c34891ec273aa1a4d105602cd5e99add5a17d6e240fa93a015d5bb2e11e54937b04781de2a854c472be376524b50fc5bb48edf7b875afb54e3ca07dcda117b0 fwupd.initd +0bf773a2c52b0306e99e5192d259f38cce8a25487e95a41b6e0200a1ed629235971795a1f9ba12a633cd902671d888610695658f2cc2c750e2afca70f87ee589 fwupd.confd " |