1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 01:35:13 +03:00
aports/testing/perl-net-curl/APKBUILD
2023-09-21 05:49:16 +00:00

37 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-net-curl
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-Curl
pkgver=0.55
pkgrel=0
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"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
2db12e61d59a07e8da6af3c3d9a439bafc1f13fe111a4efb6316bb05b5bbb34bfaef54dcc15441c63fb897c55c8fd1c11dbdd40911bcf346f3824ddf021fdb1d Net-Curl-0.55.tar.gz
"