# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=catatonit
pkgver=0.2.0
pkgrel=0
pkgdesc="Container init that is so simple it's effectively brain-dead"
url="https://github.com/openSUSE/catatonit"
license="GPL-2.0-or-later"
arch="all"
makedepends="autoconf automake libtool"
source="https://github.com/openSUSE/catatonit/archive/v$pkgver/catatonit-$pkgver.tar.gz"
options="!check" # no test suite

prepare() {
	default_prepare
	autoreconf -fi
}

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

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

	install -d "$pkgdir"/usr/libexec/podman
	ln -s /usr/bin/$pkgname "$pkgdir"/usr/libexec/podman/$pkgname
}

sha512sums="
115e72002e35bb2a03919f9422a9cb2d9a0e4f087862d4ffd20e9508af6d67efc359a577ec059574f2f6c98966a1f080b65dffc8dfb83b3c2ed48e63e2aeac3b  catatonit-0.2.0.tar.gz
"
