#!/usr/bin/env beesh

# BEE_VERSION perf-5.6.14-0

# more info: https://foo.bar.com

SRCURL[0]="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${PKGVERSION}.tar.xz"

# PATCHURL+=()

# build_in_sourcedir

sourcesubdir_append tools/perf

OPT_ARCHIVE_BUILD=no

mee_patch_post() {
    sed -i 's/lib = lib64/lib = lib/' Makefile.config
}

#mee_extract() {
#    bee_extract "${@}"
#}

#mee_patch() {
#    bee_patch "${@}"
#}

#mee_configure() {
#    bee_configure
#}

#mee_build() {
#    bee_build
#}

mee_install() {
    bee_install prefix=$PREFIX
}

mee_install_post() {
    rm -vrf ${D}/etc/bash_completion.d
    rm -vrf ${D}${PREFIX}/lib/perf/examples
}