diff options
Diffstat (limited to 'repo/perl-archive-zip/perl-archive-zip.xibuild')
-rw-r--r-- | repo/perl-archive-zip/perl-archive-zip.xibuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/perl-archive-zip/perl-archive-zip.xibuild b/repo/perl-archive-zip/perl-archive-zip.xibuild new file mode 100644 index 0000000..b6a2738 --- /dev/null +++ b/repo/perl-archive-zip/perl-archive-zip.xibuild @@ -0,0 +1,31 @@ +#!/bin/sh + +NAME="perl-archive-zip" +DESC="Provide a perl interface to ZIP archive files." + +MAKEDEPS="perl" + +PKG_VER=1.68 +SOURCE="https://cpan.metacpan.org/authors/id/P/PH/PHRED/Archive-Zip-$PKG_VER.tar.gz" + +prepare() { + default_prepare + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + make test +} + +package() { + make DESTDIR="$PKG_DEST" install + find "$PKG_DEST" \( -name perllocal.pod -o -name .packlist \) -delete +} + |