aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-warnings/APKBUILD
blob: 5164cef90e5d9ecc4890b6f90fa07a59757e1658 (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.016
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-test-tester"
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="5608b3f8dbdd65d0251200754d97863a  Test-Warnings-0.016.tar.gz"
sha256sums="09ebc9afa29eb4d1d44fbd974dfcd52e0a2d9ce7ec3e3ee7602394157831aba9  Test-Warnings-0.016.tar.gz"
sha512sums="78a3e26d2093be8612e1e97f2d45023f224ea7e09f9d669a049fd331e7ff49fb93be52996d7f7fba29263437307587fedd80c54a56b6b282b328668152557027  Test-Warnings-0.016.tar.gz"