# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=unibilium
pkgver=2.1.1
pkgrel=1
pkgdesc="Terminfo parsing library"
url="https://github.com/neovim/unibilium"
arch="all"
license="LGPL-3.0-or-later"
makedepends="libtool perl"
checkdepends="perl-utils"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/neovim/unibilium/archive/v$pkgver.tar.gz"

build() {
	make PREFIX=/usr
}

check() {
	make test
}

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

sha512sums="
ebcdcddc6c3a540d086b113bb83470c1c17cf59056b28308a484b20dc3df71de0f5d6e5bf105f9e4a8347c78500c65ae46c2b53ec87692a898c321a047664ee2  unibilium-2.1.1.tar.gz
"
