# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Maintainer: Morten Linderud <foxboron@archlinux.org>

pkgname=conmon
pkgver=2.1.12
pkgrel=1
epoch=1
pkgdesc='OCI container runtime monitor'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/containers/conmon'
license=(APACHE)
depends=(glibc glib2 systemd)
makedepends=(git)
source=(
  "git+https://github.com/containers/conmon#commit=v${pkgver}"
)
b2sums=('afcf85f41be1f9acee8875cec08443c7abc918d8dc5b133e15d70c19c405c981b88dfa2e98f78dd2a4150ee91e446ac5d7548de64d8ed5f44b7ca8e2c3a8e8c1')

build() {
  cd conmon
  make PREFIX=/usr LIBEXECDIR=/usr/lib DESTDIR="$pkgdir"
}

package() {
  install -Dm755 conmon/bin/conmon "$pkgdir/usr/bin/conmon"
}
