30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=perl-test-exception
|
|
_realpkgname=Test-Exception
|
|
pkgver=0.43
|
|
pkgrel=1
|
|
pkgdesc="Perl/CPAN Module Test::Exception : Functions for testing exceptionbased code"
|
|
arch=('any')
|
|
url='https://search.cpan.org/dist/Test-Exception/'
|
|
license=('GPL-1')
|
|
depends=("perl-sub-uplevel")
|
|
source=("https://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/${_realpkgname}-${pkgver}.tar.gz"
|
|
"LICENSE")
|
|
sha512sums=('f5ab65ce7b142ab7a96b0075838826a7f6b975a151a285e00d99db307bea07b359d5ca44eb678ba93d97b2ae37a112f0002ae1c06bb6e5654b80ce8c5473aa20'
|
|
'93aafec318a59929dd3a54a402497ac8fbe0ed9a60ba031124ebb8f37efa27e8066cb8b1593e492252c7bf416cc7a8e7696b3f5bac4df7c556b168bdfaa52d86')
|
|
|
|
build() {
|
|
cd "$srcdir"/$_realpkgname-$pkgver
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"/$_realpkgname-$pkgver
|
|
make install DESTDIR="$pkgdir"
|
|
find "$pkgdir" -name '.packlist' -delete
|
|
find "$pkgdir" -name '*.pod' -delete
|
|
install -Dm644 "$srcdir/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|