aboutsummaryrefslogtreecommitdiffstats
path: root/community/conmon/APKBUILD
blob: 40c3fa7cae1e7e061cd3b65b207736b93dcb90de (plain) (blame)
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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=conmon
pkgver=2.0.28
pkgrel=0
pkgdesc="An OCI container runtime monitor"
url="https://github.com/containers/conmon"
license="Apache-2.0"
arch="all"
makedepends="glib-dev go-md2man bash"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/containers/conmon/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare

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

build() {
	make
}

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

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

sha512sums="
f36e92a31bb9ea5c2fd4dd82843f3a603a98ba4bce0c563b41d81909251de9127cdcb453a60a0a3f35c3558a8f723c1f65d00b5ea8f3e09c4746c6f02501f4de  conmon-2.0.28.tar.gz
"