aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-devel-checklib
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-03-09 07:10:32 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-03-09 07:18:02 +0000
commit95eb37b284e4c2164969f6c978e02354eec9d605 (patch)
treefe23b49ca8ab15a9b6d992279ef2323e2f8ba2c0 /main/perl-devel-checklib
parentad9aa5a043ed34726e0a701e77dbf2c76d043740 (diff)
downloadaports-95eb37b284e4c2164969f6c978e02354eec9d605.tar.bz2
aports-95eb37b284e4c2164969f6c978e02354eec9d605.tar.xz
main/perl-devel-checklib: new aport
Diffstat (limited to 'main/perl-devel-checklib')
-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"