diff options
author | Timothy Legge <timlegge@gmail.com> | 2020-03-22 19:02:09 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2020-03-23 00:05:37 +0000 |
commit | f1b87d22db0d5699cb31fa739ee39e64c16235d9 (patch) | |
tree | 28b784f6b2e429217be999d1e2540a51e6b8c140 /community/perl-http-tiny-mech | |
parent | 0bfb6e0c33b46cf8c2c67ac54123c9c93cfd9ec3 (diff) | |
download | aports-f1b87d22db0d5699cb31fa739ee39e64c16235d9.tar.bz2 aports-f1b87d22db0d5699cb31fa739ee39e64c16235d9.tar.xz |
community/perl-http-tiny-mech: move from testing
Diffstat (limited to 'community/perl-http-tiny-mech')
-rw-r--r-- | community/perl-http-tiny-mech/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/perl-http-tiny-mech/APKBUILD b/community/perl-http-tiny-mech/APKBUILD new file mode 100644 index 0000000000..ee443f13ff --- /dev/null +++ b/community/perl-http-tiny-mech/APKBUILD @@ -0,0 +1,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" |