From 67c5e17995fadecea196da970aeaff6e168349e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Thu, 6 Jul 2017 13:58:08 +0300 Subject: testing/perl-anyevent-dns-etchosts: new aport http://search.cpan.org/dist/AnyEvent-DNS-EtcHosts/ --- testing/perl-anyevent-dns-etchosts/APKBUILD | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 testing/perl-anyevent-dns-etchosts/APKBUILD (limited to 'testing/perl-anyevent-dns-etchosts') diff --git a/testing/perl-anyevent-dns-etchosts/APKBUILD b/testing/perl-anyevent-dns-etchosts/APKBUILD new file mode 100644 index 0000000000..41e2e1cc5f --- /dev/null +++ b/testing/perl-anyevent-dns-etchosts/APKBUILD @@ -0,0 +1,47 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timo Teräs +# Maintainer: Timo Teräs +pkgname=perl-anyevent-dns-etchosts +_pkgreal=AnyEvent-DNS-EtcHosts +pkgver=0.0103 +pkgrel=0 +pkgdesc="Use /etc/hosts before DNS" +url="http://search.cpan.org/dist/AnyEvent-DNS-EtcHosts/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-anyevent" +cpanmakedepends="perl-test-deep" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DE/DEXTER/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + perl Build.PL installdirs=vendor || return 1 +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + ./Build +} + +package() { + cd "$builddir" + ./Build install destdir="$pkgdir" || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + ./Build test +} + +sha512sums="213795e75cde1acabc73220814b1b1396fca86b964e5701e81181221501c9c5b9e3b0a43d5448bf8d9f19276320c2afab75eee56ebd7b54a64126962f60a50f8 AnyEvent-DNS-EtcHosts-0.0103.tar.gz" -- cgit v1.2.3