36 lines
1.1 KiB
Bash
36 lines
1.1 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/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=libbpf
|
|
pkgver=0.7.0
|
|
pkgrel=01
|
|
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')
|
|
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=(5083588ce5a3a620e395ee1e596af77b4ec5771ffc71cff2af49dfee38c06361) # libbpf-0.7.0.tar.gz
|