43 lines
1.7 KiB
Bash
43 lines
1.7 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.4.2
|
|
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=('b0faf45e77fc0197239b87d74010bad6b7ef7d48c1b3de2a3960164d9029851e2ad204b92d0cccb2fde2d0dfe44d9fa7f24b35a4917179dbab1bee192d3780db')
|
|
b2sums=('7529e6521337d45210ee2e3d00aae7c8cac309a4b3f36ffdd9c4a6c4439f266ee654b6ad6abaea2e43310260182bd9ad52ff162339545027050329d8307fe0d5')
|
|
sha256sums=(cfa2b6fbafab9608a2ab90d0eaf64f05c27dbf76d81bed516385e825f1aad502) # libbpf-1.4.2.tar.gz
|
|
|
|
## 3af1acccd6f593389c70ab5897575e9fca33d24e8a27431206aaa1f16e901724 libbpf-1.4.2-01-x86_64.pkg.tar.lz
|
|
|