summaryrefslogtreecommitdiff
path: root/libs/libbpf/MAKEPKG
blob: 31d0de7372bab112eded6322d11cb2a6f71aa2e7 (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
#!/bin/mkpkg
# description: BPF CO-RE library for loading and managing eBPF programs
# url: https://github.com/libbpf/libbpf

name=libbpf
version=1.7.0
release=1
depends=(libelf zlib)
source=(https://github.com/libbpf/libbpf/archive/v$version.tar.gz)
renames=($name-$version.tar.gz)

sha256sums=(
    "7ab5feffbf78557f626f2e3e3204788528394494715a30fc2070fcddc2051b7b"
)

build() {
    cd $name-$version/src

    make \
        CC=${CC:-cc} \
        PREFIX=/usr \
        LIBDIR=/usr/lib

    make \
        PREFIX=/usr \
        LIBDIR=/usr/lib \
        DESTDIR=$PKG \
        install

    # remove static library
    rm -f $PKG/usr/lib/libbpf.a
}

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

# vim: filetype=sh