aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-http-tiny-mech/APKBUILD
blob: ee443f13ff2632bada19738e81a2bc63cee67fe6 (plain)
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-http-tiny-mech
_pkgreal=HTTP-Tiny-Mech
pkgver=1.001002
pkgrel=0
pkgdesc="Wrap a WWW::Mechanize instance in an HTTP::Tiny compatible interface."
url="https://metacpan.org/release/HTTP-Tiny-Mech/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-http-message perl-www-mechanize"
makedepends="perl-dev"
checkdepends="perl-http-message"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KE/KENTNL/HTTP-Tiny-Mech-$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="0791e827924abbf979c677f0f759de6b5942eb7df53e25de83d4f10d87bb4a7c176d7c1d87621c56d22fc1877552f7c927f40896782544ae10410214d364a967  HTTP-Tiny-Mech-1.001002.tar.gz"