jobcore/libbpf/PKGBUILD

43 lines
1.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
# when libbpf is upgraded iproute2 should be rebuilt "afterwards" based on the new libbpf
pkgname=libbpf
pkgver=1.4.3
pkgrel=01
pkgdesc='Library for loading eBPF programs and reading and manipulating eBPF objects from user-space'
url='https://github.com/libbpf/libbpf'
depends=('glibc' 'libelf' 'linux-api-headers' 'zlib')
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}"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(LGPL-2.1-or-later)
sha512sums=('d03965f8abeaac840cda28fdacf9df378869fa6e5ef45d992fc5398bed5970ebedb24f20676b1779f8941b4b912bb691948e198eff87ea1d5d8e5cd95d6e06d1')
b2sums=('a5440a6ba64cf5f0783ec49e3e1f13badf9fc7acc4c3ffd2ec9a499b68fb668a0b9ca9fa482d53d2e0f3d698ffe4e251e5159d668d9e41fab066912553196a81')
sha256sums=(d8be49641dd4c5caa27986a8291907176e3b6fd6fe650e4fee5b45f8093fc935) # libbpf-1.4.3.tar.gz
## edcdcfc0f37e36df5d790f9c7193d12b213fe9dbd3a61bba22c12f04df34d196 libbpf-1.4.3-01-x86_64.pkg.tar.lz