# Maintainer: Peter Budai <peterbudai@hotmail.com>

_realname=Spiffy
pkgname=perl-${_realname}
pkgver=0.46
pkgrel=1
pkgdesc="Spiffy Perl Interface Framework For You"
arch=('any')
url="https://metacpan.org/release/Spiffy"
groups=('perl-modules')
depends=('perl')
license=('PerlArtistic')
source=("https://www.cpan.org/authors/id/I/IN/INGY/Spiffy-${pkgver}.tar.gz")
sha256sums=('8f58620a8420255c49b6c43c5ff5802bd25e4f09240c51e5bf2b022833d41da3')

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}"
}
