# Contributor: kohnish <kohnish@gmx.com>
# Maintainer: kohnish <kohnish@gmx.com>
pkgname=crun
pkgver=0.12.1
pkgrel=0
pkgdesc="Command line utility that performs various operations on container images and image repositories"
url="https://github.com/containers/crun"
arch="all"
license="GPL-3.0-only"
makedepends="libcap-dev libseccomp-dev yajl-dev argp-standalone python3 go-md2man"
subpackages="$pkgname-doc $pkgname-static"
source="https://github.com/containers/crun/releases/download/$pkgver/crun-$pkgver.tar.xz"

build() {
	./configure --disable-systemd --prefix=/usr
	make
}

check() {
	make tests/tests_libcrun_errors.log
}

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

sha512sums="9308fe58382bdd399047488a806c1e5dfed187ab213714a970540658db483417323dddf8fd09592f8f9508177933a7da4f237471dc9ea1d445c22f876def3dc9  crun-0.12.1.tar.xz"
