summaryrefslogtreecommitdiff
path: root/repo/efivar/efivar.xibuild
diff options
context:
space:
mode:
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
}
+