aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-pod-cpandoc/APKBUILD
blob: 5e81c35b7555882146142e94f8473dcb983b660c (plain) (tree)
1
2
3
4
5
6
7
                                                      

                                                           

                        
           
        






                                                                 
                                                           






















                                                                                    
                                                                                                                                                                      
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-pod-cpandoc
_pkgreal=Pod-Cpandoc
pkgver=0.16
pkgrel=1
pkgdesc="perldoc that works for modules you don't have installed"
url="http://search.cpan.org/dist/Pod-Cpandoc/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev perl-module-install $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/$_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
}

sha512sums="ac9ffa4f845f213452a69e05f5f39d3cd4cf2db4c97ba2db1e7d1c6e729575b11540715abfa972ee31dad11aa334093820913a62656e2e9bbae77c910bab51bf  Pod-Cpandoc-0.16.tar.gz"