mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
56 lines
1.5 KiB
Text
56 lines
1.5 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Contributor: Timothy Legge <timlegge@gmail.com>
|
|
# Maintainer: Timothy Legge <timlegge@gmail.com>
|
|
pkgname=perl-net-curl
|
|
pkgver=0.57
|
|
pkgrel=1
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Net-Curl
|
|
pkgdesc="Perl interface for libcurl"
|
|
url="https://metacpan.org/release/Net-Curl/"
|
|
arch="all"
|
|
license="MIT-open-group OR MPL-1.1"
|
|
depends="perl"
|
|
makedepends="perl-dev curl-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/S/SY/SYP/Net-Curl-$pkgver.tar.gz
|
|
curl-8.13.patch
|
|
"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# Could be the issue mentioned in https://github.com/sparky/perl-Net-Curl/issues/83#issuecomment-2874575101
|
|
rm -v t/old-23socket-action.t
|
|
}
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
|
INSTALLDIRS=vendor \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
doc() {
|
|
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
|
|
amove "${file#"$pkgdir"}"
|
|
done
|
|
default_doc
|
|
}
|
|
|
|
sha512sums="
|
|
510aaaef037d20191dd33999f7a8946ebb68d61dcac3b4858b9a98fe774ff9a2bbc78904d5a48e677761c42c167110877ffc5f21d74aee223b36ee8b02586bf7 Net-Curl-0.57.tar.gz
|
|
8443b4696e84f5b2682f768df0bfc4154a5d89018896a2547c2db2b75da34b6fc4eb0fc5be68c4b109c117643d4574d3a3506f46bf85743238278e1c3ca818e0 curl-8.13.patch
|
|
"
|