summaryrefslogtreecommitdiff
path: root/system/perl-extutils-config
diff options
context:
space:
mode:
Diffstat (limited to 'system/perl-extutils-config')
-rw-r--r--system/perl-extutils-config/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/system/perl-extutils-config/APKBUILD b/system/perl-extutils-config/APKBUILD
new file mode 100644
index 000000000..c4eab6a9f
--- /dev/null
+++ b/system/perl-extutils-config/APKBUILD
@@ -0,0 +1,43 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-extutils-config
+_pkgreal=ExtUtils-Config
+pkgver=0.008
+pkgrel=0
+pkgdesc="A wrapper library for Perl configuration"
+url="http://search.cpan.org/dist/ExtUtils-Config/"
+arch="noarch"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_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
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="7775e2212b4605e60559c7e63604b8f2b4c56f4846e64f9f4454f3f5d0a7a21f618143e6c61eafabf5d9ee9bca8f722c04aedeaf9c51f59924de68c272b86db2 ExtUtils-Config-0.008.tar.gz"