aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-cgi-emulate-psgi/APKBUILD
blob: d5b42588f47bbf82e16ae6c0de3d3d0b53ab42c3 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      



                                              
           
        
                              
                                                    
             


                                               
                          
                                                                                     
                                    

           
                       

                                                                     


         

                                                                


           
                                      


                                                                           
         




                                                                                                                                                                           
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-cgi-emulate-psgi
_pkgreal=CGI-Emulate-PSGI
pkgver=0.23
pkgrel=2
pkgdesc="PSGI adapter for CGI"
url="https://metacpan.org/release/CGI-Emulate-PSGI/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-http-message perl-cgi"
checkdepends="perl-test-requires"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/$_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 -I. Makefile.PL INSTALLDIRS=vendor
}

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

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

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

sha512sums="0e1017175ccab53ef50993c9884990dc85c7cdb30744f4bac2df4486a63fd5fd24e7f4b0e473d39b1f2b4dfdcf12756016edbc39e0fb725c6c610c21e6a7f96a  CGI-Emulate-PSGI-0.23.tar.gz"