# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=catatonit
pkgver=0.1.4
pkgrel=0
pkgdesc="A container init that is so simple it's effectively brain-dead"
url="https://github.com/openSUSE/catatonit"
arch="all"
license="GPL-3.0-or-later"
makedepends="autoconf automake libtool"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.xz::https://github.com/openSUSE/catatonit/releases/download/v$pkgver/catatonit.tar.xz
	fix-undeclared-identifier.patch"

prepare() {
	default_prepare
	autoreconf -fi
}

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

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

sha512sums="6f68d0743ccdb59597354d1dbabb85dd07f9432aa59e56982ccae1fd3d160630af14f58ba44c85c57b6f2f4324242105306382d4ba84d38a6621234c82951ac0  catatonit-0.1.4.tar.xz
e1b77829cf76b49904ec51799b2b95ba94d482bc8038714c1363655e2e22dd1467cb906423873facf270ea6f64df0956a8e0ebad8a2892bebeacecdce9115fcf  fix-undeclared-identifier.patch"
