fwupd/contrib/PKGBUILD
Richard Hughes c4b7f42e43 Only compress one version of the builtin-quirks
Saving the quirks in the GResource section worked well, but it made the build
system very complicated and also meant the .data section was duplicated in
both `fwupd` and `fwupdtool` -- negating a lot of the hard-fought savings.

Simplify this feature so that we just `cat` all the quirk files together, then
gzip them into a single file. This means that at startup fwupd only needs to
check the mtime of one file, and weirdly it's actually faster to load a smaller
compressed file from disk that it is to load multiple uncompressed files.
2022-09-27 12:44:04 +01:00

47 lines
1.2 KiB
Bash

# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange@archlinux.org>
# Contributor: Mirco Tischler <mt-ml at gmx dot de>
pkgname=fwupd
pkgver=dummy
pkgrel=1
pkgdesc='A system daemon to allow session software to update firmware'
arch=('i686' 'x86_64')
url='https://github.com/fwupd/fwupd'
license=('GPL2')
depends=('libgusb' 'modemmanager' 'tpm2-tss')
makedepends=('meson' 'valgrind' 'gobject-introspection' 'gi-docgen' 'git'
'python-cairo' 'noto-fonts' 'noto-fonts-cjk' 'python-gobject' 'vala'
'curl' 'polkit' 'gcab' 'xz')
pkgver() {
cd ${pkgname}
VERSION=$(git describe | sed 's/-/.r/;s/-/./')
[ -z $VERSION ] && VERSION=$(head meson.build | grep ' version:' | cut -d \' -f2)
echo $VERSION
}
build() {
cd ${pkgname}
if [ -n "$CI" ]; then
export CI="--wrap-mode=default"
fi
arch-meson -D b_lto=false $CI ../build \
-Dplugin_intel_spi=true \
-Dplugin_powerd=disabled \
-Ddocs=enabled \
-Defi_binary=false \
-Dsupported_build=enabled
ninja -v -C ../build
}
check() {
CACHE_DIRECTORY=/tmp ninja -C build test
}
package() {
DESTDIR="${pkgdir}" ninja -C build install
}