summaryrefslogtreecommitdiff
path: root/repo/perl-list-moreutils/perl-list-moreutils.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/perl-list-moreutils/perl-list-moreutils.xibuild')
-rw-r--r--repo/perl-list-moreutils/perl-list-moreutils.xibuild22
1 files changed, 22 insertions, 0 deletions
diff --git a/repo/perl-list-moreutils/perl-list-moreutils.xibuild b/repo/perl-list-moreutils/perl-list-moreutils.xibuild
new file mode 100644
index 0000000..6ccbbe5
--- /dev/null
+++ b/repo/perl-list-moreutils/perl-list-moreutils.xibuild
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+NAME="perl-list-moreutils"
+DESC="Provide the stuff missing in List::Util"
+
+MAKEDEPS=" perl perl-config-autoconf perl-exporter-tiny"
+DEPS=" perl perl-config-autoconf perl-exporter-tiny"
+
+PKG_VER=0.430
+SOURCE="https://cpan.metacpan.org/authors/id/R/RE/REHSACK/List-MoreUtils-$PKG_VER.tar.gz"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+ find "$PKG_DEST" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+