aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-mro-compat/APKBUILD
blob: a2c9ea0561d209cf2f271e4447a33b7fdc928833 (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
33
34
35
36
37
38
39
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-mro-compat
_pkgreal=MRO-Compat
pkgver=0.12
pkgrel=0
pkgdesc="mro::* interface compatibility for Perls < 5.9.5"
url="http://search.cpan.org/dist/MRO-Compat/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/MRO-Compat-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

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

md5sums="06d21a3baf3d578ff3d3e10621656530  MRO-Compat-0.12.tar.gz"
sha256sums="bba5b93869aa537a3389949669d682f047d3014d53bc3a2d7209c6819e5015d6  MRO-Compat-0.12.tar.gz"
sha512sums="428255bc7a7b73ed8005107109b2294e8f7cf0cbd1543431105ec638582cb32e4cc81f29b06ce90741c1ff656186259fc1a4105247f95fe977e6758c0ccca6ab  MRO-Compat-0.12.tar.gz"