summaryrefslogblamecommitdiff
path: root/system/perl-test-pod/APKBUILD
blob: 639ccdbd365745e7194dcf857adefb42f8062c9d (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                      

           
                                       
                                           

































                                                                                   
                                                                                                                                                                   
# 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="https://metacpan.org/release/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"