jobcore/libbpf/PKGBUILD
Joe Bo Run d0ef2682c8 upg tzdata linux-lts mkinitcpio glibc eudev
moved from jobextra guile libxml2 libbpf gc
2022-10-29 21:07:11 +03:00

38 lines
1.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
# when libbpf is upgraded iproute2 should be rebuilt "afterwards" based on the new libbpf
pkgname=libbpf
pkgver=1.0.1
pkgrel=03
pkgdesc='Library for loading eBPF programs and reading and manipulating eBPF objects from user-space'
url='https://github.com/libbpf/libbpf'
arch=('x86_64')
depends=('glibc' 'libelf' 'linux-api-headers')
makedepends=('rsync')
provides=('libbpf.so')
#options=('debug') ### uncomment this to have the debug pkg produced
source=(https://github.com/libbpf/libbpf/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
build() {
cd ${pkgname}-${pkgver}
make -C src
}
package() {
cd ${pkgname}-${pkgver}
make -C src DESTDIR="${pkgdir}" LIBSUBDIR=lib install install_headers
install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
#---- license gpg-key sha256sums ----
license=('LGPL2.1')
sha256sums=(3d6afde67682c909e341bf194678a8969f17628705af25f900d5f68bd299cb03) # libbpf-1.0.1.tar.gz