aboutsummaryrefslogblamecommitdiffstats
path: root/community/fwupd/APKBUILD
blob: 8c5396dac5950c47c85d6caa9e6a86124bf00bb1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                              
            
        

                                
                 

                           
                                                                    
                                                              


                                                                                        
                                                                                  
                   

                         






                                                

                                                                                     
                                       
         

         
                      

















                                              
                                        
                                 
                                


                                     
                                                   


         

                                            
                                            


           
                                                              
 
                                                                             










                                                                                             

 
                                                                                                                                                                
                                                                                                                                             
                                                                                                                                                                  
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=fwupd
pkgver=1.5.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 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 libsmbios-dev tpm2-tss-dev elogind-dev
	libjcat-dev
	"
checkdepends="bubblewrap"
subpackages="
	$pkgname-dev
	$pkgname-doc
	$pkgname-lang
	$pkgname-openrc
	$pkgname-fish-completion:fishcomp:noarch
	"
source="fwupd-$pkgver.tar.gz::https://github.com/hughsie/fwupd/archive/$pkgver.tar.gz
	$pkgname.initd
	fix-lib64-bubblewrap-bind.patch
	"

build() {
	abuild-meson \
		-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=true \
		-Dtests=true \
		-Dudevdir=/lib/udev \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	# tests fail if usb is not available
	[ -e /dev/bus/usb ] || return 0
	meson test --no-rebuild -v -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
}

fishcomp() {
	depends=""
	pkgdesc="Fish completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel fish"

	amove usr/share/fish/completions
}

sha512sums="0c98dd7ca55afeaa4c895a837fc8d6eafcc51d215cc02be659916c7a39ddaa6bc3752adddba8cd2a9c77a4eca707b6c71522645f2847330c1c2ef44910451bf3  fwupd-1.5.3.tar.gz
4add6954bb3581b371d6105addde819cd41834d33293fe7362dbab4e0dccf486e2bbc96d5822fcb729ca568739cc5572c8e30d3db220f4476befbdc85ba8457b  fwupd.initd
4a5cc7cb87b91345ad98e11ebbc67e0e8c1b124e7e01376f58886a0858cc68ef96f8edc46a41793f407821d2d5c9e91f7a962d4149732e803f6dde579a8c1b3b  fix-lib64-bubblewrap-bind.patch"