31 lines
775 B
Bash
31 lines
775 B
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=perl-try-tiny
|
|
pkgver=0.30
|
|
pkgrel=1
|
|
pkgdesc="Minimal try/catch with proper localization of \$@"
|
|
arch=('any')
|
|
url="https://search.cpan.org/dist/Try-Tiny"
|
|
license=('Expat')
|
|
depends=('perl')
|
|
options=('!emptydirs')
|
|
source=("https://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Try-Tiny-${pkgver}.tar.gz")
|
|
sha512sums=('f523736ab0504ca0f7150be312e62988c4b9473a9e8469b0746dc8364945e2922c64c92e95e6c2b5792c5d6399dabea3d00aa45c065155b95519d5658a07216c')
|
|
|
|
build() {
|
|
cd Try-Tiny-${pkgver}
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd Try-Tiny-${pkgver}
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd Try-Tiny-${pkgver}
|
|
make DESTDIR="$pkgdir" install
|
|
install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
|
|
}
|