# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=shellcat
pkgver=1.1.1
pkgrel=0
pkgdesc="Templating system with shell syntax"
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/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make
	make -C doc
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="fe9438a9660549bf82deeeba2b5b2e115ba41742ab82f7631d8845c3dd146545f3a2baec1fc0b1f67af77a4bb1237ecd247cff9ad4053dbce72053d7b656e30c  shellcat-1.1.1.tar.gz"
