# $Id: PKGBUILD 138452 2015-08-17 13:11:27Z anatolik $

pkgname=unibilium
pkgver=1.2.0
pkgrel=1
pkgdesc='A terminfo parsing library'
arch=(x86_64 i686)
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)
sha1sums=('ed5150071bef1d1504fddbbe1c842ab47c1cbaec')

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

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

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