diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-07-06 13:58:08 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-07-11 14:31:24 +0300 |
commit | 67c5e17995fadecea196da970aeaff6e168349e4 (patch) | |
tree | af4cffa6f8b797437e2be49342a129af2d217af9 /testing/perl-anyevent-dns-etchosts | |
parent | 278cf84bf1cd7f5e385de840d8c99b78fcf75488 (diff) | |
download | aports-67c5e17995fadecea196da970aeaff6e168349e4.tar.bz2 aports-67c5e17995fadecea196da970aeaff6e168349e4.tar.xz |
testing/perl-anyevent-dns-etchosts: new aport
http://search.cpan.org/dist/AnyEvent-DNS-EtcHosts/
Diffstat (limited to 'testing/perl-anyevent-dns-etchosts')
-rw-r--r-- | testing/perl-anyevent-dns-etchosts/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
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 <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +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" |