archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libbpf / trunk / PKGBUILD
blob53525583e540b3957ecd8c2cccf1929b795c2537
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor:  Adrian Bacircea <adrian.bacircea@gmail.com>
4 pkgname=libbpf
5 pkgver=0.5.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=('3c578d3e6e93a306a1f182978e54f35fec8acfa51fad5d7de72c5003f10c266d7474e82d6dd045311fcaf8c18aa8cebe64a3336a458a9ea477e5a58e5111dd85')
16 b2sums=('9097d808f03cbbe61cd59b24347075e2937603f51350f83f8897123900c911392d7545af8135f39f749132c6518296f1a4d22d37c0c7b4371631f5c63a0dd9ac')
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: