aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-error/APKBUILD
blob: a8dfd67bd0b924bd4ce39143232340bb65df0547 (plain)
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
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-error
_realname=Error
pkgver=0.17024
pkgrel=0
pkgdesc="Perl module error/exception handling in an OO-ish way"
url="http://search.cpan.org/dist/Error/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_realname-$pkgver.tar.gz"

_builddir="$srcdir"/$_realname-$pkgver
build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

md5sums="7e3676a7fb14f65f568f12d4b40a2a72  Error-0.17024.tar.gz"
sha256sums="074db7c783a67b0667eca64a4f6a0c3de94998afc92c01d6453163eb04b9150d  Error-0.17024.tar.gz"
sha512sums="886ad8d527936ddca564c466bb753e29bcb203ebc32bee7c8af8db05f70fcae17d3536f1f0163d17e3d1a0669da0c559ea0e5d14a1e83c4c7e329d4368ba3e77  Error-0.17024.tar.gz"