summaryrefslogtreecommitdiff
path: root/system/perl-error/APKBUILD
blob: f4eb8dee22964453ba95746bfb070f89a63f2ae1 (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
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> 
pkgname=perl-error
_realname=Error
_author=SHLOMIF
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.17028
pkgrel=0
pkgdesc="Perl module error/exception handling in an OO-ish way"
url="https://metacpan.org/release/Error"
arch="noarch"
license="GPL-2.0-only AND Artistic-1.0-Perl"
depends="perl"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_realname-$pkgver.tar.gz"
builddir="$srcdir"/$_realname-$pkgver

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="bba62e9cac092f53e7606d7673a6cbf4e2684eefd7a44e17859071e6a2dfb45ea471279443b287e1b40dfb89ce351d17d92151d91d6ad59a7737a32e472c58fc  Error-0.17028.tar.gz"