summaryrefslogtreecommitdiff
path: root/core/efivar/MAKEPKG
blob: 405d513488024f2483c72f17134324b64826692b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/mkpkg
# description: Tools and libraries to work with EFI variables
# url: https://github.com/rhboot/efivar

name=efivar
version=39
release=1
source=(https://github.com/rhboot/$name/archive/$version/$name-$version.tar.gz)

sha256sums=(
    "c9edd15f2eeeea63232f3e669a48e992c7be9aff57ee22672ac31f5eca1609a6"
)

build() {
    cd $name-$version

    # Fix -Werror with clang
    sed -i 's/-Werror//' src/include/defaults.mk

    make CC=clang ENABLE_DOCS=0 \
        libdir=/lib \
        includedir=/include \
        bindir=/bin

    make install CC=clang ENABLE_DOCS=0 \
        DESTDIR=$PKG \
        libdir=/lib \
        includedir=/include \
        bindir=/bin

    install -d $PKG/usr/share/man/man1
    install -m644 docs/efivar.1 $PKG/usr/share/man/man1/
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh