aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-tree-simple/APKBUILD
blob: 64bfb7fb259bc6e97369672799ff5c95b366d2db (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                    
                        
                    

           
                                  
                                              

                          
                                 
                           
                      
                          


                                                                                
 
           


                                                                 


         






                      


           

                                      


                                                                           
                                                                                                                                                                   
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-tree-simple
_pkgreal=Tree-Simple
pkgver=1.33
pkgrel=0
pkgdesc="Tree::Simple Perl module"
url="https://metacpan.org/release/Tree-Simple"
arch="noarch"
license="GPL+ or Artistic"
cpandepends="perl-test-exception"
depends="perl $cpandepends"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/$_pkgreal-$pkgver.tgz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_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
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="bec140fa723a8fadc65d2d8dc88c73295b346bc1583bfb031f2851cf80cddaea9b3e5e38225bbd7ac2e3e29006efb5bbac95b678090ba62714dfd6a306000b25  Tree-Simple-1.33.tgz"