aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-net-curl/APKBUILD
blob: d7e09105d574d494ae4316e57e7269891962b775 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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.49
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 libcurl"
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="ef7d05e9ebd325ced817558f75352a25fbc894b8f6ac7e87b064dd01e88a5cb0373747c23368a3468e5d7c88597ff51e9a65a4315096f0834c307adab02415e7  Net-Curl-0.49.tar.gz"