aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-xml-treepp/APKBUILD
blob: 59dd40fbef64e05d8919e7fdf9199a622b8b8bf2 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                           
        
                                                                    
                                              






                                       
                                                                                    
 
                                    

           
                      




                                                                 
                      
                                                               





                      


           

                                      


                                                                           
                                                                                                                                                                     
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-xml-treepp
_pkgreal=XML-TreePP
pkgver=0.43
pkgrel=3
pkgdesc="Pure Perl implementation for parsing/writing XML documents"
url="https://metacpan.org/release/XML-TreePP/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-libwww"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KA/KAWASAKI/$_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="4289a0a8100ef15f62f0e303f13094371ac6f1b54d887be1ed7e2ea31d7f1f6fc28d4234cf96458074137f756db3fe452ded170d3ee576f7eb2cfc9996cc31d1  XML-TreePP-0.43.tar.gz"