2021-01-08 17:16:19 -03:00
|
|
|
# Automatically generated by apkbuild-cpan, template 3
|
2011-06-01 13:42:19 +00:00
|
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
|
|
pkgname=perl-net-http
|
2021-01-08 17:16:19 -03:00
|
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
|
|
_pkgreal=Net-HTTP
|
2023-06-17 05:30:36 +00:00
|
|
|
pkgver=6.23
|
2023-07-03 16:51:53 +02:00
|
|
|
pkgrel=1
|
2021-01-08 17:16:19 -03:00
|
|
|
pkgdesc="Low-level HTTP connection (client)"
|
|
|
|
replaces="perl-libwww"
|
|
|
|
url="https://metacpan.org/release/Net-HTTP/"
|
2011-06-01 13:42:19 +00:00
|
|
|
arch="noarch"
|
2019-05-25 14:33:01 -03:00
|
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
2014-08-21 08:50:23 +00:00
|
|
|
depends="perl perl-uri"
|
2011-06-01 13:42:19 +00:00
|
|
|
subpackages="$pkgname-doc"
|
2021-01-08 17:16:19 -03:00
|
|
|
source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Net-HTTP-$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
2011-06-01 13:42:19 +00:00
|
|
|
|
|
|
|
build() {
|
2021-01-08 17:16:19 -03:00
|
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
|
2017-08-17 04:37:13 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2021-01-08 17:16:19 -03:00
|
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
2017-08-17 04:37:13 +00:00
|
|
|
make test
|
2011-06-01 13:42:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-08-17 04:37:13 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2011-06-01 13:42:19 +00:00
|
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
|
|
}
|
|
|
|
|
2022-05-06 15:52:51 +02:00
|
|
|
sha512sums="
|
2023-06-17 05:30:36 +00:00
|
|
|
be926d12f6a8be504f221b54dbe9b1cbe1ff18b7dc8075ce308cc8c436ed9e4fe959516ce81c858a70de80df13cedd8cd78fd153cc5eb763f1bc3c9893ceaa05 Net-HTTP-6.23.tar.gz
|
2022-05-06 15:52:51 +02:00
|
|
|
"
|