1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 20:55:20 +03:00
aports/testing/perl-net-curl/APKBUILD
2022-08-19 12:59:58 +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.52
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="
96f52693a01bff1679d983b5dbc17dddec65afe0059204bc504fff52854f4e19ac94cf282f7b65f021872630739a936255df5352d77de99078afaddd91f95ad8 Net-Curl-0.52.tar.gz
"