# $Id: PKGBUILD 296432 2018-02-19 21:21:57Z eworm $

pkgname=unibilium
pkgver=2.0.0
pkgrel=1
pkgdesc='A terminfo parsing library'
arch=('x86_64')
url='https://github.com/mauke/unibilium/'
depends=('glibc')
license=('LGPL3')
source=("$pkgname-$pkgver.tar.gz::https://github.com/mauke/unibilium/archive/v$pkgver.tar.gz")
sha256sums=('78997d38d4c8177c60d3d0c1aa8c53fd0806eb21825b7b335b1768d7116bc1c1')

build() {
  cd $pkgname-$pkgver
  make PREFIX=/usr
}

check() {
  cd $pkgname-$pkgver
  make test
}

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