summaryrefslogtreecommitdiff
path: root/system/perl-test-requiresinternet
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 04:57:52 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 04:57:52 -0500
commitecf49ff970530b0d4e8674115eb0bbd846940d99 (patch)
tree535a808925c429a099813204ab80755ecea380a6 /system/perl-test-requiresinternet
parent4af80658258b3d9602af50789b9879b0974ea43a (diff)
downloadpackages-ecf49ff970530b0d4e8674115eb0bbd846940d99.tar.gz
packages-ecf49ff970530b0d4e8674115eb0bbd846940d99.tar.bz2
packages-ecf49ff970530b0d4e8674115eb0bbd846940d99.tar.xz
packages-ecf49ff970530b0d4e8674115eb0bbd846940d99.zip
system/perl-test-requiresinternet: add for lwp
Diffstat (limited to 'system/perl-test-requiresinternet')
-rw-r--r--system/perl-test-requiresinternet/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/system/perl-test-requiresinternet/APKBUILD b/system/perl-test-requiresinternet/APKBUILD
new file mode 100644
index 000000000..db7b419a5
--- /dev/null
+++ b/system/perl-test-requiresinternet/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-test-requiresinternet
+_pkgreal=Test-RequiresInternet
+pkgver=0.05
+pkgrel=1
+pkgdesc="Easily test network connectivity"
+url="http://search.cpan.org/dist/Test-RequiresInternet/"
+arch="noarch"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MA/MALLEN/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="572af3e6fdfb90df3a58ba6eaf571717b294a54fff4b3f597fd177f1eb91fb1c929cb808f8d219f692314a944cf41dc1afab41f5a0dd2185054c08fec69e66c3 Test-RequiresInternet-0.05.tar.gz"