# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-term-table
pkgver=0.022
pkgrel=1
pkgdesc="Format a header and rows into a table"
arch=(any)
license=('PerlArtistic')
url="https://metacpan.org/release/Term-Table"
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Term-Table-$pkgver.tar.gz")
sha512sums=('5e942104eb11ee1344ce97a33db4559584f94140516b31f53464be07b274cc7ffe9340cd63f3aff5a1d1af2f0701ed7e75179eedfb1611a5c3dc9b281f10c35d')

build() {
  cd Term-Table-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Term-Table-$pkgver
  make test
}

package() {
  cd Term-Table-$pkgver
  make DESTDIR="$pkgdir" install
}
