aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cpan-meta-check/APKBUILD
blob: e0e1f95865106927bc4cb99910725e2661f29523 (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.011
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="2591aa5dd0658a6502a7bf068754e7bd  CPAN-Meta-Check-0.011.tar.gz"
sha256sums="70127009da00525b3bd254ca334b857b45f1ef431fd111f383bc8d066107b15b  CPAN-Meta-Check-0.011.tar.gz"
sha512sums="3140be2b6de685e84a6b363a8396a91d7423617068df5fdb52a14632d17fcab8a51eb7e2ffd74cdcee422086558d5c4bc0823c5568a5cbd73e06db84b7dbd3c0  CPAN-Meta-Check-0.011.tar.gz"