# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=shellcat
pkgver=1.2
pkgrel=1
pkgdesc="templating system with shell syntax"
options="!check" # Tests pass on CI/local fail on the builders
url="https://github.com/jwilk/shellcat"
arch="all"
license="MIT"
checkdepends="coreutils"
makedepends="perl"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jwilk/shellcat/archive/$pkgver.tar.gz"

build() {
	make
	make -C doc
}

check() {
	make check
}

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

sha512sums="1c919ae4c2009f65d06f0f5192524ae5d690bf950d6ce4fe256197107b462fc1347891fba294a1b3cb005e8353028ff77e6aee496751e0efd3f19a20e7d97d62  shellcat-1.2.tar.gz"
