summaryrefslogtreecommitdiffstats
path: root/main/perl-test-warnings/APKBUILD
blob: a4a096ac9663d4f95f94422c8f2b0cbb86cb8bd4 (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-test-warnings
_pkgreal=Test-Warnings
pkgver=0.021
pkgrel=0
pkgdesc="Test for warnings and the lack of them"
url="http://search.cpan.org/dist/Test-Warnings/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="  perl-cpan-meta-check "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_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="fcbc42414de51392348c27420d3c14b0  Test-Warnings-0.021.tar.gz"
sha256sums="d98a182e333d58bd7fc68fdc6d9f548624df07d73bdb124bd1af5087e1cc2c44  Test-Warnings-0.021.tar.gz"
sha512sums="72a8b1e8739d1e9ac8d460d1692d1503325592448a534dd56faf68bf27f2c0698b285ef2c0e653bf0785077393ea010b0a5fbaf22f36bb123f4d9a3848999366  Test-Warnings-0.021.tar.gz"