178099b72f
Drop plugin_altos=false config option, as suggested by upstream.
73 lines
2 KiB
Bash
73 lines
2 KiB
Bash
# Template file for 'fwupd'
|
|
pkgname=fwupd
|
|
version=1.6.4
|
|
revision=2
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dsupported_build=true -Dconsolekit=false -Dsystemd=false -Delogind=true
|
|
-Dintrospection=true -Dtests=false"
|
|
# tests require unpackaged umockdev
|
|
hostmakedepends="dejavu-fonts-ttf gnutls-tools pkg-config gcab gi-docgen
|
|
vala glib-devel polkit gettext pango python3-gobject python3-Pillow"
|
|
makedepends="libxmlb-devel cairo-devel colord-devel libarchive-devel
|
|
gnutls-devel gpgme-devel json-glib-devel libgusb-devel polkit-devel
|
|
sqlite-devel libsoup-devel gcab-devel pango-devel elogind-devel
|
|
tpm2-tss-devel libjcat-devel libcurl-devel"
|
|
depends="dbus udisks2"
|
|
conf_files="
|
|
/etc/fwupd/*.conf
|
|
/etc/fwupd/remotes.d/*.conf"
|
|
short_desc="Daemon to allow session software to update firmware"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://github.com/hughsie/fwupd"
|
|
distfiles="https://github.com/hughsie/fwupd/archive/${version}.tar.gz"
|
|
checksum=4bbbc47a3bdbae197a7071ceba56cdf5cc79da51ad895c2303c652dd41b019fe
|
|
replaces="fwupdate>=0"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686*)
|
|
_have_uefi=yes
|
|
_plugin_msr=yes
|
|
_plugin_dell=yes
|
|
;;
|
|
arm*|aarch64*)
|
|
_have_uefi=yes;;
|
|
esac
|
|
|
|
if [ -z "$_plugin_msr" ]; then
|
|
configure_args+=" -Dplugin_msr=false"
|
|
fi
|
|
|
|
if [ "$_plugin_dell" ]; then
|
|
makedepends+=" libsmbios-devel"
|
|
else
|
|
configure_args+=" -Dplugin_dell=false"
|
|
fi
|
|
|
|
if [ -n "$_have_uefi" ]; then
|
|
makedepends+=" libefivar-devel fwupd-efi"
|
|
depends+=" fwupd-efi"
|
|
else
|
|
configure_args+=" -Dplugin_redfish=false -Dplugin_uefi_capsule=false -Dplugin_uefi_pk=false"
|
|
fi
|
|
|
|
pre_build() {
|
|
# help gi-docgen find gi files on cross
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
export XDG_DATA_DIRS=/usr/$XBPS_CROSS_TRIPLET/usr/share/
|
|
fi
|
|
}
|
|
|
|
fwupd-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} libglib-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
vmove usr/share/doc
|
|
}
|
|
}
|