summaryrefslogblamecommitdiff
path: root/user/perl-test-tcp/APKBUILD
blob: e850c5405acb200a3165c632e43cd08fde070372 (plain) (tree)
1
2
3
4
5
6
7
8
                                                  
                                                          
                     
                 



                               



                                                 
                                       

                                   
                          

                                                                                        

         




                                                                 



                 



                                                                           
                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-test-tcp
_pkgreal=Test-TCP
_author=MIYAGAWA
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.22
pkgrel=0
pkgdesc="Testing library for Perl code using TCP"
url="https://metacpan.org/release/Test-TCP"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-test-sharedfork"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="2e0c8cf710f9702eee9b00422d7133efe87575805361d72becd2c3de671c765baf84827b601d26091e8a6b8595e6d9f168f90b7cfda402d668deb6fc277e37ad  Test-TCP-2.22.tar.gz"