aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-resub
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-26 14:41:01 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-26 14:41:01 +0000
commit8c9dfbaa4c750df9ee511c07ff5ff79f1709e8ac (patch)
treec61b46de2aeaa295e1e74f419be1c1e96bd5360c /community/perl-test-resub
parentb1a2a4408d9a34b3e3663eec7081b3c70da1d629 (diff)
downloadaports-8c9dfbaa4c750df9ee511c07ff5ff79f1709e8ac.tar.bz2
aports-8c9dfbaa4c750df9ee511c07ff5ff79f1709e8ac.tar.xz
community/perl-test-resub: moved from unmaintained
Diffstat (limited to 'community/perl-test-resub')
-rw-r--r--community/perl-test-resub/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/perl-test-resub/APKBUILD b/community/perl-test-resub/APKBUILD
new file mode 100644
index 0000000000..c62815a119
--- /dev/null
+++ b/community/perl-test-resub/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-test-resub
+_pkgreal=Test-Resub
+pkgver=2.03
+pkgrel=0
+pkgdesc="Lexically scoped monkey patching for testing"
+url="http://search.cpan.org/dist/Test-Resub/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/K/KO/KOLYA/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+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 && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="8af92b5ec6f3275c88f1a17616d8e8ae Test-Resub-2.03.tar.gz"
+sha256sums="5bc04e7ff90b01c8677b0c3ddaf1be9382c6ace55ab25b0f72e3f935e570da52 Test-Resub-2.03.tar.gz"
+sha512sums="f8f5a51adc21296ee7902f029a1aeaf6c34d2c9ced908dad7ffe09b7256d05d222429aab47d5138e7b733456218441a4ea106e16968267ee3b4ad36850244c68 Test-Resub-2.03.tar.gz"