summaryrefslogblamecommitdiff
path: root/system/perl-http-daemon/APKBUILD
blob: a0fc81ce5d31ada793a2bf547c7dc429ecf6b563 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                   



                         
        
                                  
                                              


                                               
                              
                                        

                          
                                                                                                        


                                      


                                                                           


         
                    


           
                                         


                                                                           
                                                                                                                                                                      
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-http-daemon
pkgver=6.06
_author=O
_author2=${_author}A
_author3=${_author2}LDERS
pkgrel=0
pkgdesc="HTTP::Daemon perl module"
url="https://metacpan.org/release/HTTP-Daemon"
arch="noarch"
license="GPL-2.0-only or Artistic-1.0-Perl"
depends="perl perl-http-date perl-http-message"
checkdepends="perl-test-needs"
makedepends="perl-dev perl-module-build"
replaces="perl-libwww"
subpackages="$pkgname-doc"
source="https://search.cpan.org/CPAN/authors/id/$_author/$_author2/$_author3/HTTP-Daemon-$pkgver.tar.gz"
builddir="$srcdir"/HTTP-Daemon-$pkgver

build() {
	# use Module::Build for non-/usr/local, not Module::Build::Tiny.
	PERL_MB_FALLBACK_SILENCE_WARNING=1 perl Build.PL installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="8e6dcf4451aaa6bd5f38508a087e5bb9b7f5105e8e243d09bdd3f4be3d7009222b3d9f8e494f049b48f0caebf36f239b8bbc7b8edc805f7d32b1bbeb38431732  HTTP-Daemon-6.06.tar.gz"