APKBUILD 828 Bytes
Newer Older
1 2
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
kohnish's avatar
kohnish committed
3
pkgname=conmon
4
pkgver=2.0.26
kohnish's avatar
kohnish committed
5 6 7 8
pkgrel=0
pkgdesc="An OCI container runtime monitor"
url="https://github.com/containers/conmon"
license="Apache-2.0"
9 10 11
arch="all"
makedepends="glib-dev go-md2man bash"
subpackages="$pkgname-doc"
kohnish's avatar
kohnish committed
12 13
source="$pkgname-$pkgver.tar.gz::https://github.com/containers/conmon/archive/v$pkgver.tar.gz"

14 15 16 17 18 19 20
prepare() {
	default_prepare

	# fix go-md2man path
	sed -E "s/(GOMD2MAN =).*/\1 go-md2man/" -i "$builddir"/docs/Makefile
}

kohnish's avatar
kohnish committed
21 22 23 24 25 26 27 28 29 30 31 32
build() {
	make
}

check() {
	./bin/conmon --version
}

package() {
	make install PREFIX=/usr DESTDIR="$pkgdir"
}

33
sha512sums="74f09901bcc728ec734d603d7015341ae4af08d9c2ce5502af86967e96c314ffac74cdbd496db61677312846f14b962149144098d4feca73396973017bc81f8f  conmon-2.0.26.tar.gz"