# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=libvterm
pkgver=0.0.20161007
_gitref=e0a3d4dbd44a9534bf7437ee98ceb26dabebf3ad
pkgrel=1
pkgdesc="Abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator"
url="https://www.leonerd.org.uk/code/libvterm"
arch="all"
license="MIT"
depends=""
makedepends="libtool perl"
subpackages="$pkgname-dev"
source="$pkgname-$_gitref.tar.gz::https://github.com/neovim/$pkgname/archive/$_gitref.tar.gz"
builddir="$srcdir/$pkgname-$_gitref"

build() {
	cd "$builddir"
	make PREFIX=/usr
}

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

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

sha512sums="8ac8e442783a2db129087ea42e02034f4a7aa9070c5776f43879f5675b3da447e7f6fbd50a77713f0e424f1e0eb2ce203f9ee9e77999b0e208b033e37b4b6587  libvterm-e0a3d4dbd44a9534bf7437ee98ceb26dabebf3ad.tar.gz"
