summaryrefslogblamecommitdiff
path: root/system/perl-test-pod/APKBUILD
blob: 4147e39ac7de25fa41483df4b64cea22c3884daf (plain) (tree)
1
2
3
4
5
6
7




                                                      

           



































                                                                                   
                                                                                                                                                                   
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  A. Wilcox <awilfox@adelielinux.org>
pkgname=perl-test-pod
_pkgreal=Test-Pod
pkgver=1.52
pkgrel=0
pkgdesc="Check for POD errors in files"
url="http://search.cpan.org/dist/Test-Pod/"
arch="noarch"
license="GPL-2.0-only AND Artistic-1.0-Perl"
cpandepends=""
cpanmakedepends=""
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
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="9b078488e1da8b907f5f3a46452aa9bfd49db61f1539d076dccebf9a8b476eaf0f539f00badc9c500b1e732a8827331b2286375924986efb990367767eeb8365  Test-Pod-1.52.tar.gz"