aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-pathtools/APKBUILD
blob: d86e0ec8b33b3fb1167ae822cfc75ab61e7749af (plain) (tree)
1
2
3
4
5
6
7
8




                                                              
           
        
                                                                      


                                            


                                       
                                                                                      
                                    

           
                      



                                                                 
                      





                      


           
                      



                                                                           




                           
                                                                                                                                                                    
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-pathtools
_pkgreal=PathTools
pkgver=3.75
pkgrel=0
pkgdesc="The combined distribution for the File::Spec and Cwd modules"
url="http://search.cpan.org/dist/PathTools/"
arch="all"
license="GPL PerlArtistic"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	make
}

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

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

doc() {
	default_doc
	replaces="perl-doc"
}

sha512sums="bab592a64df391a50b70717cd5fa042ca395e83790dbc447abd72ef81f0e7caf7b8ce1158102d77d470765c572e6773cd907e4884532350bd2f15da667b9a993  PathTools-3.75.tar.gz"