summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 715b8d188d9c3a3020d638405c83292ce217c18e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=sysinternalsebpf
pkgver=1.4
pkgrel=1
pkgdesc="Sysinternals EBPF"
arch=('i686' 'x86_64')
url="https://github.com/Sysinternals/SysinternalsEBPF"
license=('LGPL-2.1-or-later')
depends=('glibc' 'libelf' 'zstd')
makedepends=('clang' 'cmake')
options=('staticlibs')
source=("$pkgname-$pkgver-src.tar.gz::https://github.com/Sysinternals/SysinternalsEBPF/archive/refs/tags/$pkgver.0.0.tar.gz")
sha256sums=('43f3e1a4cd40ac0c0d70bf129813f2679064073bd7ca429c06ccac7384f16be5')


build() {
  cd "SysinternalsEBPF-$pkgver.0.0"

  cmake \
    -B "_build" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    -DCMAKE_INSTALL_LIBDIR="lib" \
    ./
  make -C "_build"
}

check() {
  cd "SysinternalsEBPF-$pkgver.0.0"

  #make -C "_build" test
}

package() {
  cd "SysinternalsEBPF-$pkgver.0.0"

  make -C "_build" DESTDIR="$pkgdir" install
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/sysinternalsebpf"
}