summaryrefslogtreecommitdiff
path: root/user/perl-exception-class/APKBUILD
blob: a130d6ed1073b3bada3890e75315f3aba823e8ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-exception-class
pkgver=1.44
pkgrel=0
pkgdesc="Perl module for declaring 'real' exception classes"
url="https://metacpan.org/release/Exception-Class"
arch="noarch"
license="Artistic-1.0-Perl"
depends="perl-class-data-inheritable perl-devel-stacktrace"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Exception-Class-$pkgver.tar.gz"
builddir="$srcdir/Exception-Class-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="7ce1e488505dc3d1c6d6365b5ed523b204b93d89d205ad4cdf6c9ee9dbad1a6edc257251a365275f067479e734def56b3b21d588e978822e7714bd8a49ba6bb2  Exception-Class-1.44.tar.gz"