archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libbpf / repos / core-x86_64 / PKGBUILD
blob677c174c3d946b480f27b662c4445dbb8ed83483
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor:  Adrian Bacircea <adrian.bacircea@gmail.com>
4 pkgname=libbpf
5 pkgver=1.2.0
6 pkgrel=1
7 pkgdesc='Library for loading eBPF programs and reading and manipulating eBPF objects from user-space'
8 url='https://github.com/libbpf/libbpf'
9 arch=('x86_64')
10 license=('LGPL2.1')
11 depends=('glibc' 'libelf' 'linux-api-headers')
12 makedepends=('rsync')
13 provides=('libbpf.so')
14 source=(https://github.com/libbpf/libbpf/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
15 sha512sums=('b5291e807a3c83cb80a47e3518a3ab5ad0b0e6157842117c0684c32e525dce0cca199c3c9028390b94a73ff968391aa023312d3b8bd7472aff1c9ee5206c424e')
16 b2sums=('cd10fd9133f01d3f8dbd5ed4585e5605c3b9fb0d9f6ee76a49dcb61a0555edfeb85e333f7b8eb069f47a65d0ab24dcdc33502bd660378cd662a366f10de627a4')
18 build() {
19   cd ${pkgname}-${pkgver}
20   make -C src
23 package() {
24   cd ${pkgname}-${pkgver}
25   make -C src DESTDIR="${pkgdir}" LIBSUBDIR=lib install install_headers
26   install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
27   install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
30 # vim: ts=2 sw=2 et: