From 1bf8f89efb2829a746c2d991866a2c64bac4a87b Mon Sep 17 00:00:00 2001 From: Síle Ekaterin Liszka Date: Thu, 23 Nov 2023 06:27:23 -0800 Subject: user/fwupd: new package --- user/fwupd/APKBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 user/fwupd/APKBUILD diff --git a/user/fwupd/APKBUILD b/user/fwupd/APKBUILD new file mode 100644 index 000000000..6e9ed0692 --- /dev/null +++ b/user/fwupd/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Síle Ekaterin Liszka +# Maintainer: Síle Ekaterin Liszka +pkgname=fwupd +pkgver=1.9.9 +pkgrel=0 +pkgdesc="Onboard firmware update service for Linux" +url="https://fwupd.org" +arch="pmmx x86_64 aarch64" +license="LGPL-2.1+ AND GPL-2.0+" +depends="" +makedepends="cmake meson ninja efivar-dev elogind-dev eudev-dev fwupd-efi-dev + gcab-dev gi-docgen glib-dev gnu-efi gobject-introspection-dev help2man + libarchive-dev libelf-dev libgudev-dev libgusb-dev libjcat-dev + libsoup-dev libxmlb-dev modemmanager-dev polkit-dev protobuf-c-dev + py3-markdown py3-pillow py3-pygobject sqlite-dev ttf-liberation + tpm2-tss-dev vala-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" +source="fwupd-$pkgver.tar.gz::https://github.com/fwupd/fwupd/archive/$pkgver.tar.gz + " + +case "$CARCH" in + pmmx|x86_64) makedepends="$makedepends flashrom-dev libsmbios-dev mingw-w64-tools";; +esac + +build() { + PATH="/usr/gnu/bin:$PATH" meson setup \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --buildtype=release \ + --wrap-mode=nofallback \ + -Dsystemd=disabled \ + -Delogind=enabled \ + . output + PATH="/usr/gnu/bin:$PATH" meson compile -j1 -C output +} + +check() { + PATH="/usr/gnu/bin:$PATH" meson test -C output +} + +package() { + DESTDIR="$pkgdir" meson install -C output +} + +sha512sums="9cab065f8606514376187856ba170c71363c8c9c1a72510e159b56d1c33b8e66b94da8603516113dad52034f1d4dc6945663365192fb408d41900932fca7132b fwupd-1.9.9.tar.gz" -- cgit v1.2.3-70-g09d2