# Maintainer: 3ED # pkgname=perl-sah _author=PERLANCAR _pkgname=Sah pkgver=0.9.46 pkgrel=1 pkgdesc='Schema for data structures' arch=('any') license=('PerlArtistic') options=('!emptydirs') depends=('perl-defhash') url="https://metacpan.org/release/${_pkgname}" _lastauthor=${_author:0:1}/${_author:0:2}/${_author} source=(https://cpan.metacpan.org/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz) sha512sums=('1159e54d695a3c40061c6a14f776ea639b4c043e496790503330958bd9bef6364187d9d3752d3338982df085a46a632dbfb50e929709f42c9e07ded0f677ce88') build() { export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ MODULEBUILDRC=/dev/null cd "${srcdir}/${_pkgname}-${pkgver}" perl Makefile.PL make } check() { cd "${srcdir}/${_pkgname}-${pkgver}" make test } package() { cd "${srcdir}/${_pkgname}-${pkgver}" make install }