summaryrefslogtreecommitdiff
path: root/repo/system/efivar.xibuild
blob: e01d66bffd6e9818cc83bcb3054ef6d31a1f51d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

MAKEDEPS=(make )
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 
}