aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-xml-bare/APKBUILD
blob: a7dfebb344b9fd32f340420b0baee3114a26b2b0 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

              


                     
        
                                                                                    
                                           
          

                                               
                          
                                                                                     
 
                                    

           

                       
                                                                



                                                                 
                                                                



            
                 


           
                                      


                                                                           
                                                                                                                                                                   
# Automatically generated by apkbuild-cpan, template 1
# Contributor:
# Maintainer:
pkgname=perl-xml-bare
_pkgreal=XML-Bare
pkgver=0.53
pkgrel=8
pkgdesc="A minimal XML parser / schema checker / pretty-printer using C internally."
url="https://metacpan.org/release/XML-Bare"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/C/CO/CODECHILD/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

check() {
	make test
}

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

sha512sums="e765206e5c98ed3a0c29be3a323e25beaa712489d0461e2e7269f5f3383fa805ba3829a9ed4d31cd86f35400c321f8cf519162cc41f52f8ba6992c7016f63520  XML-Bare-0.53.tar.gz"