aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cpan-meta-check/APKBUILD
blob: 0bf44dc6df79f68b17688319b86eb4f3bfda8d24 (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
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-cpan-meta-check
_pkgreal=CPAN-Meta-Check
pkgver=0.013
pkgrel=0
pkgdesc="Verify requirements in a CPAN::Meta object"
url="http://search.cpan.org/dist/CPAN-Meta-Check/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-module-metadata>=1.000023"
cpanmakedepends="  perl-test-deep"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

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

md5sums="7bf7867f9e898e6398b9c2e8d668bb0b  CPAN-Meta-Check-0.013.tar.gz"
sha256sums="4fca09a28066e7e134d691dc25c496c838043617a93b7eec4df807df8e7f73d5  CPAN-Meta-Check-0.013.tar.gz"
sha512sums="c7bb972ce6afd21f415d0bca03f9ebefe0298e8b7db32e42f0195ae5da535da079f482c9d2bf598cb39d234b467397eb4b949b93c34c4d02b113caf76fd5a9c5  CPAN-Meta-Check-0.013.tar.gz"