aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/perl-devel-checklib/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/perl-devel-checklib/APKBUILD b/main/perl-devel-checklib/APKBUILD
new file mode 100644
index 0000000000..e0df2e57cb
--- /dev/null
+++ b/main/perl-devel-checklib/APKBUILD
@@ -0,0 +1,48 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor:
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=perl-devel-checklib
+_pkgreal=Devel-CheckLib
+pkgver=1.07
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Devel-CheckLib/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends="perl-io-captureoutput"
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MA/MATTN/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ 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 || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="05ced7b976b2c9854f0705db3b461614962568045e04b33a92c11d05ec8183cf56935dc5ef2f80e4746d52cb08c6c993627166d0f701abce5c91ceceed39d103 Devel-CheckLib-1.07.tar.gz"