aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-net-async-http/APKBUILD
blob: 3ac7b393b1d86287eb6b6c8f31c0f3d3516c7d05 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                                      
           
        
                                    

                                                 
                                               
                                                                                   
                                                      
                      
                                                                            


                                                                                    
                                    

           
                      
                                                                
                                        


         
                      
                                                                





                      


           

                                         


                                                                           
                                                                                                                                                                         
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-net-async-http
_pkgreal=Net-Async-HTTP
pkgver=0.44
pkgrel=0
pkgdesc="Use HTTP with C<IO::Async>"
url="http://search.cpan.org/dist/Net-Async-HTTP/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-io-async perl-future perl-uri perl-http-message perl-struct-dumb"
cpanmakedepends="perl-test-identity perl-http-cookies"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-test-refcount perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL installdirs=vendor
}

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

check() {
	cd "$builddir"
	./Build test
}

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

sha512sums="e490e1e64eded28958e79324b2f954b8663c7b3790667b963b73f3e04d0bb2c20652c3442853ae92802815447af6818029c49156dd37ce3e07caa88e1431cb3e  Net-Async-HTTP-0.44.tar.gz"