initial import
This commit is contained in:
32
libbpf/PKGBUILD
Normal file
32
libbpf/PKGBUILD
Normal file
@@ -0,0 +1,32 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=libbpf
|
||||
pkgver=0.3
|
||||
pkgrel=3
|
||||
pkgdesc="Library for loading eBPF programs and reading and manipulating eBPF objects from user-space"
|
||||
url='https://github.com/libbpf/libbpf'
|
||||
arch=('i686' 'x86_64')
|
||||
license=('LGPL-2.1' 'GPL-2')
|
||||
depends=('glibc' 'libelf')
|
||||
makedepends=('rsync')
|
||||
source=("https://github.com/libbpf/libbpf/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
||||
"consolidate-lib-dirs.patch")
|
||||
sha512sums=('91c3368626e731b5868fd1bb6d16bd049b2ed0d5cbf966647fa1069cf8c912d91f3d734f05353a0c16c8ff03790ca8e1e6515fff66e4a76d70ffdf2dbac6d8e3'
|
||||
'1f19209278f7feaee27a8211f11851c3fe601e5a5c548c8b1bcf1aae7e17c0fe2933e07a3b5b38115c940949ca4c30ad669c618bad69fe2b3d8d1a4d91fecc1b')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
patch -p1 -i ${srcdir}/consolidate-lib-dirs.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make NO_PKG_CONFIG=1 -C src
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make -C src DESTDIR="${pkgdir}" install install_headers
|
||||
install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
install -Dm 644 README.md src/README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
|
||||
}
|
||||
19
libbpf/consolidate-lib-dirs.patch
Normal file
19
libbpf/consolidate-lib-dirs.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
Alpine doesn't recognize lib64 directories by default, so we consolidate into lib.
|
||||
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
index e9021fe..1d86ecd 100644
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -54,11 +54,7 @@ INSTALL = install
|
||||
|
||||
DESTDIR ?=
|
||||
|
||||
-ifeq ($(shell uname -m),x86_64)
|
||||
- LIBSUBDIR := lib64
|
||||
-else
|
||||
- LIBSUBDIR := lib
|
||||
-endif
|
||||
+LIBSUBDIR := lib
|
||||
|
||||
PREFIX ?= /usr
|
||||
LIBDIR ?= $(PREFIX)/$(LIBSUBDIR)
|
||||
Reference in New Issue
Block a user