New package: fwupdate-10.

This commit is contained in:
maxice8 2018-02-12 15:06:01 -02:00 committed by Michael Aldridge
parent 9af56f902c
commit 0330486371
5 changed files with 62 additions and 0 deletions

View File

@ -3123,3 +3123,4 @@ libwayland-egl++.so.0.2 libwaylandpp-2.2.0_1
libwayland-client++.so.0.2 libwaylandpp-2.2.0_1
libwayland-cursor++.so.0.2 libwaylandpp-2.2.0_1
libwayland-client-extra++.so.0.2 libwaylandpp-2.2.0_1
libfwup.so.1 fwupdate-10_1

1
srcpkgs/fwupdate-devel Symbolic link
View File

@ -0,0 +1 @@
fwupdate

View File

@ -0,0 +1,4 @@
TO use the EFI firmware update executable, copy the /usr/lib/fwupdate/EFI
folder to your EFI partition

View File

@ -0,0 +1,18 @@
--- linux/libfwup.c
+++ linux/libfwup.c
@@ -30,6 +30,15 @@
#include "ucs2.h"
#include "fwup-efi.h"
+#ifndef strndupa
+#define strndupa(s, n) \
+ (__extension__ ({const char *__in = (s); \
+ size_t __len = strnlen (__in, (n)) + 1; \
+ char *__out = (char *) alloca (__len); \
+ __out[__len-1] = '\0'; \
+ (char *) memcpy (__out, __in, __len-1);}))
+#endif
+
static int verbose;
#include "error.h"

38
srcpkgs/fwupdate/template Normal file
View File

@ -0,0 +1,38 @@
# Template file for 'fwupdate'
pkgname=fwupdate
version=10
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="popt-devel libefivar-devel gnu-efi-libs elfutils-devel"
short_desc="Tool for using the ESRT and UpdateCapsule() to apply firmware updates"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="GPL-2"
homepage="https://github.com/rhboot/fwupdate"
distfiles="https://github.com/rhboot/fwupdate/releases/download/${version}/fwupdate-${version}.tar.bz2"
checksum=73f42c6097049ab4490e88bd7742ac962f892e6660ee2af40254605d011ef33a
make_build_args="EFIDIR=void GNUEFIDIR=/usr/lib"
make_install_args="EFIDIR=void LIBDIR=/usr/lib"
case "$XBPS_TARGET_MACHINE" in
x86_64|i686) makedepends+=" libsmbios-devel" ;;
esac
post_install() {
vmkdir usr/lib/fwupdate
mv "${DESTDIR}"/boot/efi/EFI "${DESTDIR}"/usr/lib/fwupdate/EFI
rm -rf "${DESTDIR}"/boot
rm -rf "${DESTDIR}"/usr/src
rm -rf "${DESTDIR}"/usr/lib/debug
rm -rf "${DESTDIR}"/usr/lib/systemd
}
fwupdate-devel_package() {
depends="${sourcepkg}-${version}_${revision} libefivar-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}