79 lines
2.3 KiB
Bash
79 lines
2.3 KiB
Bash
# Template file for 'fwupd'
|
|
pkgname=fwupd
|
|
version=1.2.5
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
# manpages fail to build
|
|
# tests require unpackaged umockdev
|
|
configure_args="-Dconsolekit=false -Dgtkdoc=false -Dintrospection=true
|
|
-Dsystemd=false -Dplugin_altos=false -Dtests=false -Dman=false
|
|
-Dpkcs7=false -Db_lto=false -Defi-includedir=${XBPS_CROSS_BASE}/usr/include/efi
|
|
-Defi-ldsdir=${XBPS_CROSS_BASE}/usr/lib -Defi-ld=${XBPS_CROSS_BASE}/usr/bin/ld
|
|
-Defi-libdir=${XBPS_CROSS_BASE}/usr/lib"
|
|
hostmakedepends="dejavu-fonts-ttf gnutls-tools help2man pkg-config gcab
|
|
vala glib-devel polkit"
|
|
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 python3-gobject
|
|
python3-Pillow"
|
|
short_desc="Daemon to allow session software to update firmware"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://github.com/hughsie/fwupd"
|
|
distfiles="https://github.com/hughsie/fwupd/archive/${version}.tar.gz"
|
|
checksum=d65ea134f1b60ce5b11bf0224e3ec477be3eb01c3435d1364a40ea5403400e8c
|
|
|
|
conf_files="
|
|
/etc/dbus-1/system.d/org.freedesktop.fwupd.conf
|
|
/etc/fwupd/daemon.conf
|
|
/etc/fwupd/remotes.d/*.conf"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" -Defi-cc=/usr/bin/${XBPS_CROSS_TRIPLET}-gcc"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686*)
|
|
makedepends+=" libsmbios-devel"
|
|
configure_args+=" -Dplugin_dell=true"
|
|
;;
|
|
*)
|
|
configure_args+=" -Dplugin_dell=false"
|
|
;;
|
|
esac
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686-musl|x86_64-musl) ;;
|
|
*-musl) broken="gobject introspection" ;;
|
|
*) ;;
|
|
esac
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*)
|
|
configure_args+=" -Dplugin_uefi=false"
|
|
configure_args+=" -Dplugin_redfish=false"
|
|
configure_args+=" -Dplugin_nvme=false"
|
|
;;
|
|
*) makedepends+=" gnu-efi-libs libefivar-devel" ;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Replace the values from our patch into the system itself
|
|
sed -i -e "s|@XBPS_CROSS_BASE@|${XBPS_CROSS_BASE}|g" meson.build
|
|
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
|
|
}
|
|
}
|