# Maintainer: Ray Donnelly <mingw.android@gmail.com>

_realname=Getopt-Tabular
pkgname=perl-${_realname}
pkgver=0.3
pkgrel=1
pkgdesc="table-driven argument parsing for Perl 5"
arch=('any')
url="https://metacpan.org/author/GWARD${_realname}-${pkgver}"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/G/GW/GWARD/${_realname}-${pkgver}.tar.gz")

sha256sums=('9bdf067633b5913127820f4e8035edc53d08372faace56ba6bfa00c968a25377')

prepare() {
  cd "$srcdir/${_realname}-${pkgver}"
}

build() {
  cd "$srcdir/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir/${_realname}-${pkgver}"
  make install DESTDIR="$pkgdir"
}
