summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 17:56:49 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 17:56:49 -0500
commit7e28ff0568c9eadf9464e770a2501e1400f3bebf (patch)
tree35ebb2fbb83748dee0e1fb6b21299864d233e8ef
parent94c0812d5c9cf3d65b90b2eff5ab7528c3032f1e (diff)
downloadpackages-7e28ff0568c9eadf9464e770a2501e1400f3bebf.tar.gz
packages-7e28ff0568c9eadf9464e770a2501e1400f3bebf.tar.bz2
packages-7e28ff0568c9eadf9464e770a2501e1400f3bebf.tar.xz
packages-7e28ff0568c9eadf9464e770a2501e1400f3bebf.zip
system/perl-module-build-tiny: pull in for apkbuild-cpan
-rw-r--r--system/perl-module-build-tiny/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/system/perl-module-build-tiny/APKBUILD b/system/perl-module-build-tiny/APKBUILD
new file mode 100644
index 000000000..646c6be04
--- /dev/null
+++ b/system/perl-module-build-tiny/APKBUILD
@@ -0,0 +1,46 @@
+# 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-module-build-tiny
+_pkgreal=Module-Build-Tiny
+pkgver=0.039
+pkgrel=0
+pkgdesc="A tiny replacement for Module::Build"
+url="http://search.cpan.org/dist/Module-Build-Tiny/"
+arch="noarch"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+cpandepends="perl-extutils-installpaths perl-extutils-config perl-extutils-helpers perl-test-harness"
+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"
+ if [ -e Build.PL ]; then
+ perl Build.PL --installdirs=vendor || return 1
+ else
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ fi
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ ./Build
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
+}
+
+package() {
+ cd "$builddir"
+ ./Build install --destdir="$pkgdir" --create_packlist=0 || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="26ca6fe4c1792b26bb2b4711035847f4215ea7c37234fbe24fc07432682fd9d3b6016dbdb2ecb455a7b13f6bea13994826c7f84f21075f0a6e575fa74672903a Module-Build-Tiny-0.039.tar.gz"