aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-cgi-emulate-psgi/APKBUILD
blob: 0ce29687a2523a1e36609ee7ca4a7e9791606298 (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 PerlArtistic"
cpandepends="perl-http-message"
cpanmakedepends=""
cpancheckdepends="perl-test-requires"
depends="$cpandepends perl-cgi"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

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

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

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

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

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