summaryrefslogtreecommitdiff
path: root/repo/system/efivar.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-18 16:41:30 +0000
committerdavidovski <david@davidovski.xyz>2022-01-18 16:41:30 +0000
commit62e6db1a0d4a1708867131473c9f48e2d8c9d523 (patch)
tree660744a2ab7f83adeac01fba99b5411438013b58 /repo/system/efivar.xibuild
parent77511c89f1c191215b250a1d8f8db75b0f8268fb (diff)
added efi tools
Diffstat (limited to 'repo/system/efivar.xibuild')
-rw-r--r--repo/system/efivar.xibuild20
1 files changed, 20 insertions, 0 deletions
diff --git a/repo/system/efivar.xibuild b/repo/system/efivar.xibuild
new file mode 100644
index 0000000..0d52229
--- /dev/null
+++ b/repo/system/efivar.xibuild
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+DEPS=()
+
+PKG_VER=37
+SOURCE=https://github.com/rhboot/efivar/releases/download/$PKG_VER/efivar-$PKG_VER.tar.bz2
+DESC="Tools and libraries to manupulate EFI variables"
+
+prepare () {
+ curl -SsL https://www.linuxfromscratch.org/patches/blfs/svn/efivar-$PKG_VER-gcc_9-1.patch > efivar-$PKG_VER.patch
+ patch -Np1 -i efivar-$PKG_VER.patch
+}
+
+build () {
+ make CFLAGS="-O2 -Wno-stringop-truncation"
+}
+
+package () {
+ make LIBDIR=/usr/lib DESTDIR=$PKG_DEST install
+}