summaryrefslogtreecommitdiff
path: root/repo/efivar/efivar.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/efivar/efivar.xibuild
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'repo/efivar/efivar.xibuild')
-rw-r--r--repo/efivar/efivar.xibuild36
1 files changed, 15 insertions, 21 deletions
diff --git a/repo/efivar/efivar.xibuild b/repo/efivar/efivar.xibuild
index b2830d1..d47e14f 100644
--- a/repo/efivar/efivar.xibuild
+++ b/repo/efivar/efivar.xibuild
@@ -1,35 +1,29 @@
#!/bin/sh
-MAKEDEPS="make patch"
-DEPS="musl"
+NAME="efivar"
+DESC="Tools and library to manipulate EFI variables"
+
+MAKEDEPS="popt linux-headers mandoc"
PKG_VER=38
-SOURCE=https://github.com/rhboot/efivar/releases/download/$PKG_VER/efivar-$PKG_VER.tar.bz2
+SOURCE="https://github.com/rhboot/efivar/releases/download/$PKG_VER/efivar-$PKG_VER.tar.bz2"
ADDITIONAL="
- patches/musl-bswap.patch
- patches/efivar-fix-format_guid.patch
- patches/efivar-fix-packed.patch
- patches/efivar-fix-ucs2.patch
+musl-compat.patch
"
-DESC="Tools and libraries to manupulate EFI variables"
-
prepare() {
- apply_patches
-
- # remove verbosity in ln commands
- for f in Makefile src/Makefile src/test/Makefile docs/Makefile Make.rules; do
- echo "patching $f"
- sed -i "s@-vfs@-fs@g" $f
- sed -i "s@-rfv@-rf@g" $f
- done
+ apply_patches
+ sed -i 's/#include <sys\/cdefs.h>//g' "$BUILD_ROOT/src/compiler.h"
}
-build () {
- make CFLAGS="-O2 -Wno-stringop-truncation"
+build() {
+ cd "$BUILD_ROOT"
+ libdir="/usr/lib" make
}
-package () {
- make LIBDIR=/usr/lib DESTDIR=$PKG_DEST install
+package() {
+ cd "$BUILD_ROOT"
+ libdir="/usr/lib" make DESTDIR="$PKG_DEST" install
}
+