# Contributor: knuxify <knuxify@gmail.com>
# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=chafa
pkgver=1.14.2
pkgrel=0
pkgdesc="Terminal graphics for the 21st century"
url="https://hpjansson.org/chafa"
arch="all"
license="LGPL-3.0-or-later"
makedepends="glib-dev freetype-dev libjpeg-turbo-dev tiff-dev librsvg-dev libwebp-dev"
subpackages="$pkgname-libs $pkgname-dev $pkgname-doc"
source="https://github.com/hpjansson/chafa/releases/download/$pkgver/chafa-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-gtk-doc \
		--without-imagemagick
	make
}

check() {
	make check
}

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

sha512sums="
cd7b08b3e0a50cbb661e650b61d11c07ba0f0d0913493b54460557a7e1c0b381d1b94f67e175353a052bcdfb7760a2a6acafd8dae5adc41fc1bb9a1dbfbe2150  chafa-1.14.2.tar.xz
"
