# Maintainer: Alexey Pavlov _realname=Try-Tiny pkgname=perl-${_realname} pkgver=0.31 pkgrel=1 pkgdesc="Minimal try/catch with proper localization of \$@" arch=('any') url="https://metacpan.org/release/Try-Tiny" groups=('perl-modules') license=('MIT') depends=('perl') options=('!emptydirs') source=("https://www.cpan.org/authors/id/E/ET/ETHER/${_realname}-${pkgver}.tar.gz") sha256sums=('3300d31d8a4075b26d8f46ce864a1d913e0e8467ceeba6655d5d2b2e206c11be') build() { cd ${_realname}-${pkgver} perl Makefile.PL INSTALLDIRS=vendor make } check() { cd ${_realname}-${pkgver} make test } package() { cd ${_realname}-${pkgver} make DESTDIR="${pkgdir}" install install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }