aboutsummaryrefslogtreecommitdiffstats
path: root/community/fwupd/APKBUILD
blob: d5bd76c7b8d7ade9f6d8cca672802d266c2b8724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=fwupd
pkgver=1.3.3
pkgrel=0
pkgdesc="Firmware update daemon"
url="https://fwupd.org/"
arch="x86_64 x86"
license="LGPL-2.1-or-later"
depends="dbus"
makedepends="meson help2man linux-headers gnutls-utils
	python 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 libsmbios-dev tpm2-tss-dev
	"
checkdepends="bubblewrap"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-openrc"
source="fwupd-$pkgver.tar.gz::https://github.com/hughsie/fwupd/archive/$pkgver.tar.gz
	$pkgname.initd
	fixes.patch
	"

build() {
	meson \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-Ddaemon=true \
		-Dagent=true \
		-Dconsolekit=true \
		-Dfirmware-packager=true \
		-Dgpg=true \
		-Dgtkdoc=false \
		-Dlvfs=true \
		-Dman=true \
		-Dpkcs7=true \
		-Dplugin_altos=false \
		-Dplugin_amt=true \
		-Dplugin_dell=true \
		-Dplugin_dummy=false \
		-Dplugin_synaptics=true \
		-Dplugin_thunderbolt=true \
		-Dplugin_redfish=false \
		-Dplugin_uefi=true \
		-Dplugin_nvme=true \
		-Dplugin_modem_manager=false \
		-Dplugin_coreboot=true \
		-Dsystemd=false \
		-Delogind=false \
		-Dtests=true \
		-Dudevdir=/lib/udev \
		. output
	ninja -C output
}

check() {
	# tests fail if usb is not available
	[ -e /dev/bus/usb ] || return 0
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

sha512sums="b8f0d88fa9c1c8219dd040775d76207f1be87294ebb5f38043b77a670a1601cc597a711f5635aa3d164a08ee0dd068dd22514acae96f6fc5ad20d35099d02f50  fwupd-1.3.3.tar.gz
ad569d342cf14290d4924582af92c7d634139cf04eb1d981b4a4573ed56a8f9115914adefa925c8486e1126dd4fbed36a786aad4afd07de14dd6cbdf7982b766  fwupd.initd
0298319cb5249326ef2576612165a1c4775128fcbd58a19367385816873b56d59cfdcc2d0ef8c95e92fc7a454974aede361de43f132c024272cb5fce7b6dbbcb  fixes.patch"